 | This guide contains a few examples of regular expressions that you can use in the RegExp and Match RegExp functions. |
Sample Examples
To get part of a field value before the first space:
Example: Field contains 'Mike A Smith'. Apply this expression to get 'Mike'
To get a part of a field value after the first space:
Example: Field contains 'Mike A Smith'. Apply this expression to get 'A Smith'
To get a part of a field value after the last space:
Example: Field contains 'Mike A Smith'. Apply this expression to get 'Smith'
To get a part of a field value between the first and last space:
.*? \s {1}([\w\d\W]*) \s {1}.*
Example: Field contains 'Mike A Smith'. Apply this expression to get 'A'
To get the last n number of symbols from a field value:
Example: Field contains '123No%34ab' and you need just '34ab' (the last 4 characters). Apply
In the above examples '\s' can be replaced with other symbols depending on your data format. Example:
\t for 'tab'
\, for comma
- for dash
etc.
If your field values might contain various symbols you can include them all in the following way:
Example, phone numbers in your database have different formats, like 111 222 4444 and 777-888-9999 and you need to get just the area codes your regular expression should be
This way the resulting records will only contain 111, 777 etc.
See Also
Pre-built DataMap 
Related forum post 
RegExp Function
Match RegExp Function