Nov 8, 2018

Java Regular Expression Examples

Username Regular Expression Pattern


Match characters and symbols in the list, a-z, 0-9 , underscore , hyphen
Length at least 3 characters and maximum length of 16

Password Regular Expression Pattern


Start of group
must contains one uppercase characters
must contains one lowercase characters
must contains one digit from 0-9
must contains one special symbols in the list "@#&$%"
match anything with previous condition checking
length at least 8 characters and maximum of 88
End of group