String.matches()
Signature
boolean matches (String s1, String regex)
Domain
ACTION, CONDITION, QUERY, BUI
Description
Tells whether or not this string matches the given regular expression.
To see a description of the regular expression syntax see the
java.util.regex.Pattern documentation.
Parameters
Name | Type | Description |
s1 | String | A String to search. |
regex | String | s1 is to be matched. |
Returns
Type | Description |
boolean | true if the String s1 matches the regular
expression regex , otherwise returns false. |
See Also
java.util.regex.Pattern