How to validate email, SSN, phone number in Java using Regular expressions.
Jan 10
Java, Most Popular Posts Java, Phone number, RegEx, Regular Expression, SSN, utility, Validate email 38 Comments
Regular Expressions offer a concise and powerful search-and-replace mechanism.
They are patterns of characters used to perform search, extract or replace operations on the given text. Regular expressions can also be used to validate that the input conforms to a given format.
For example, we can use Regular Expression to check whether the user input is a valid Social Security number, a valid phone number or a valid email number, etc.
More



