Instead of .matches you may use .replaceFirst here with a capturing group: str = str.replaceFirst( "^(PM\\s*\\d+)/PM\\s*\\d+.
確定! 回上一頁