Skip to main content
Version: v0.16.0

StringMatch

Alias:StringMatch, IsMatch, RegexMatch

Output:SCLBool

Returns true if a string is matched by a particular regular expression

ParameterTypeRequiredPositionDefault ValueSummary
Stringstring✔1The string to match
Pattern
Regex
string✔2The regular expression pattern. Uses the .net flavor
IgnoreCaseboolFalseWhether the regex should ignore case.

Examples​

Example 1​

SCL​

StringMatch String: 'aaaabbbbccc' Pattern: 'a+b+c+'

Expected Output​

True

Example 2​

SCL​

IsMatch String: 'abracadabra' Regex: 'ab\w+?ab'

Expected Output​

True