Article ID:

Detecting and modifying text patterns in email texts

Using “regular expressions”, you can not only detect text and character patterns in Email texts but also change them if required. This allows you to “anonymise” credit card numbers for example.

Step by Step

The ability to work with regular expressions in Email texts forms part of the iQ.Suite Wall Email Address Filtering jobs.

You will find the “Email Body” area in the “Regular Expressions” tab.

The search text is entered there under “Regular Expression”. Example: ([0-9]{4})\-([0-9]{4})\-([0-9]{4})\-([0-9]{4}) Do The function then searches for four blocks of numbers, each containing 4 numbers. These are separated by a hyphen.

The desired result is entered in the “Replacement Text” field.

Example: $1\-$2\-$3\-xxxx
In place of the four blocks of numbers, only the first three are visible. The last block is replaced with “xxxx”.

For example, following editing with this job, “1234-1234-1234-1234” becomes “1234-1234-1234-xxxx”

Last updated:
13 May 2016
crafted by code-x 💚
Scroll to Top

Login