Regex
A regex can be created by casting from a string.
The following examples all return true.
While regex was added as a standalone type in version 2.3.0, regex matching has always been available via the string::matches() function.
A regex can be created by casting from a string.
The following examples all return true.
While regex was added as a standalone type in version 2.3.0, regex matching has always been available via the string::matches() function.