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