DriveWorks Solo 15: IsMatch [send feedback...]

Syntax

ISMATCH( [ Input], [ Pattern] )

Indicates whether the regular expression specified finds a match in the input string.

Input is the input string to find the regular expression within.

Pattern is the regular expression to be used to find a match.

Examples

Rule

Meaning
ISMATCH("0000000000000001", "0*[1-9][0-9]*")This function uses the Regular Expression patter "0*[1-9][0-9]*" to search for a match within the input string "0000000000000001" that matches the pattern. This returns true as the input string matches the pattern specified.

Example Outcomes

InputPatternOutcome
"0000000000000001""0*[1-9][0-9]*"True
"000000""0*[1-9][0-9]*"False
"00759""0*[1-9][0-9]*"True
"123456789""[^0-9]"False
"123854""0*[1-9][0-9]*"True
"123def789""[^0-9]"False
"abcdefghi""[^0-9]"True
"asdfgs""0*[1-9][0-9]*"False

Table of Contents