Tells whether or not this string matches the given regular expression.
An invocation of this method of the form str.matches(regex) yields exactly the same result as the expression
java.util.regex.Pattern
.java.util.regex.Pattern.matches(String,CharSequence)
(regex, str)
regex
| the regular expression to which this string is to be matched |
PatternSyntaxException
| if the regular expression's syntax is invalid |
java.util.regex.Pattern
@spec JSR-51
Diagram: String