Viewing matched expression in refindnocase
Hello
I would like to know how to view the matched expressions in my refindcnocase string.
I have the following...
<cfset BODY = "The following message to was undeliverable. The reason for the problem: 5.1.2 - Bad destination host 'DNS Hard Error looking up dirtbagshithead.com (MX) ">
<cfset hardtest= #refindnocase("500|501|502|503|504|512|523|550|551|552|553|554|5\.0\.0|5\.0\.1|5\.0\.2|5\.0\.3|5\.0\.4|5\.1\.2|5\.2\.3|5\.5\.0|5\.5\.1|5\.5\.2|5\.5\.3|5\.5\.4|hard",body)#>
BODY is the body of an email
1. I want to see if the BODY contains any of the items in the expression.
2. If it does contain one of the expressions, i want to output which one is contained.
Please can someone assist me. I would be most grateful.
best regards
Delon
