...
Description
Excerpt |
---|
Returns true if character expression string matches the regular expression regex. |
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
string | string | Yes | Specifies a character expression to match the regex against. |
regex | string | Yes | Specifies a regular expression to match the specified string. |
...
Matches any string containing "will". Prints Return true
Example 2
Code Block |
---|
wret = matches("This will return ?", "will"); print("Return " + wret); |
Matches only the string "will". Prints Return false
Example 3
Code Block |
---|
wret = matches("This will return ?", ".*will[^\\?]*\\?"); print("Return " + wret); |
Matches any string containing "will" and ending with a question mark. Prints Return true
Notes
Note |
---|
|
...