You need to call find() before group() : String pattern = "([^-]*)-([\\D]*)([\\d]*)"; String value = "SSS-BB0000"; Matcher matcher ...
確定! 回上一頁