Use regular expressions with WOQL and JavaScript.
WOQL provides Pearl Compatible Regular Expressions (PCRE) using the predicate regexp
with the structure:
Examples of basic regular expression pattern matching with WOQL.
Match a string to pattern "t(..)t"
.
Results
Match a string to pattern "m..h"
.
Results
Match start ^
and end $
of a string to pattern "^m...h$"
.
Results
Match start and end of the string to pattern "^(....)-(..)-(..)$"
.
Results
v:All | v:Match |
---|---|
v:All |
---|
v:All |
---|
v:All | v:Year | v:Month | v:Day |
---|---|---|---|
"test"
"es"
"match"
(no match)
"match"
"2020-10-12"
"2020"
"10"
"12"