Regular expressions also allow for a value to be extracted from within some text. For example, a customer card code could be extracted from an email subject or body, then used to match the email to a specific customer, even if that email was not actually sent directly from that customer. For example, if the email was sent to support@ via an automated monitoring application.
Example email sent from automated monitoring application:
From: ticket@remotemonitoring.com
To: support@mycompany.com
Subject: Problem with server details servername.customercode
Body: Help required: Unable to Access the server
A regular expression can be used to extract customercode from the above email's subject and use this to match the email with a cardfile.
|