I\'m getting a compile error at the following method.
public static boolean isValidPasswd(String passwd) { String reg = \"^(?=.*[0-9])(?=.*[a-z])(?=.*[A-
The following compiles for me:
class E{ String s = "^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[~#;:?/@&!\"'%*=¼.,-])(?=[^\\s]+$).{8,24}$"; }
See: