String IsMatch Example
This example uses regular expression and the String IsMatch viper to determine whether a match is found.
Smartsite SXML | Copy Code |
---|---|
{string.ismatch('The rain in Spain falls mainly in the plain', 'main\w+')} => true {string.ismatch('The rain in Spain falls mainly in the plain', 'rain\w+')} => false {string.ismatch('The rain in Spain falls mainly in the plain', 'Main\w+', none)} => false {string.ismatch('The rain in Spain falls mainly in the plain', 'Main\w+', ignorecase)} => true |
Example Result | Copy Code |
---|---|
true => true false => false false => false true => true |