This the second post for Java string methods. In this post I will detail more functions and its functionalities.
This method tests string against given regular expression. This method returns true only if this string matches the given regular expression.
public boolean matches(String regex)
regex the regular expression.