String replace (char oldChar, char newChar). matches 方法用來測試全字串是否符合規則表示式:. jshell> "0970-168168".matches("\\d{4}-\\d{6} ...
確定! 回上一頁