StringMatch
Alias:StringMatch
, IsMatch
, RegexMatch
Output:SCLBool
Returns true if a string is matched by a particular regular expression
Parameter | Type | Required | Position | Default Value | Summary |
---|---|---|---|---|---|
String | string | ✔ | 1 | The string to match | |
Pattern Regex | string | ✔ | 2 | The regular expression pattern. Uses the .net flavor | |
IgnoreCase | bool | False | Whether 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