String Operations
Operation | Description | Example |
---|---|---|
value | Matches the value exactly | abc |
*value* | Matches if the value contains the specified string | *abc* |
value* | Matches if the value starts with the specified string | abc* |
*value | Matches if the value ends with the specified string | *abc |
!value | Matches if the value does not equal the specified string | !abc |
!*value* | Matches if the value does not contain the specified string | !*abc* |
!value* | Matches if the value does not start with the specified string | !abc* |
!*value | Matches if the value does not end with the specified string | !*abc |
/regex/ | Matches if the value matches the regular expression pattern | /^abc.*$/ |
!/regex/ | Matches if the value does not match the regular expression pattern | !/^abc.*$/ |
tip
All comparisons are case-insensitive.
Examples
Input | Value to Match | Result |
---|---|---|
hello | hello* | Matches |
hello world | hello* | Matches |
abcxyz | *abc* | Matches |
xyzabc | *abc | Matches |
abc123 | value* | No Match |
123abc | *value | Matches |
abc | !abc | No Match |
abcdef | !*abc* | No Match |
xyz | !*abc* | Matches |
abc123 | /abc/ | Matches |
123abc | /abc/ | Matches |
xyz | !/abc/ | Matches |
abc | !/abc/ | No Match |
abcdef | !value* | Matches |
abc | value* | No Match |