Step 5: Regex
Below are some common regex expressions that can be useful when configuring a connector to update data. For more on regex, see the Regular expression syntax cheat sheet from Mozilla.
Key Expressions
Expression | Usage |
---|---|
. |
Matches any single character (except line terminators like /n or /r ) |
^ |
Matches the beginning of a string |
$ |
Matches the end of a string |
* |
Matches the preceding item as many times as necessary |
Examples
Goal | Regex Pattern |
---|---|
Match the entire string | ^.*$ |
Find and replace a string that ends with -test with -myTest |
-test$ |
Append New to the beginning of a location name |
^ |
<% elem.innerText %>