Use Regular Expressions
Use regular expressions with WOQL and JavaScript.
WOQL provides Pearl Compatible Regular Expressions (PCRE) using the predicate regexp
with the structure:
Regular expressions examples
Examples of basic regular expression pattern matching with WOQL.
Match a string in sub position 1
Match a string to pattern "t(..)t"
.
Code: String match sub position 1
Results
v:All | v:Match |
---|---|
|
|
Match a string in sub position 2
Match a string to pattern "m..h"
.
Code: String match sub position 2
Results
v:All |
---|
|
Match start and end of a string
Match start ^
and end $
of a string to pattern "^m...h$"
.
Code: String match start and end
Results
v:All |
---|
|
|
Match multiple parts of a string
Match start and end of the string to pattern "^(....)-(..)-(..)$"
.
Code: String match multiple parts
Results
v:All | v:Year | v:Month | v:Day |
---|---|---|---|
|
|
|
|
Last updated