in reply to Email content filter and RegEx!

I have tried many different regular expressions and right now it looks like this:

/\b(?:[\d]{8})\b/i

Below is a part of an email message that was filtered by the regex above, though the message that was sent does not contain any numbers in it. I just grabbed the part of the message that had the formatting tags that tripped the filter. The PureMessage filtering system looks at the message in the raw and filters each part (HEAD, BODY, etc.) separately. So when outlook adds HTML formatting tags to the email, some of the tags contain number strings that trip the regex. I am looking for a regex that can skip anything in a HTML tag and just match what I need.
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D049350615-12082003><FONT face=3DArial color=3D#0000 +ff = size=3D2>Please=20 remove me from your list!</FONT></SPAN></DIV> <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT = face=3DTahoma=20 size=3D2>-----Original Message-----<BR>

Replies are listed 'Best First'.
Re: Re: Email content filter and RegEx!
by Anonymous Monk on Aug 12, 2003 at 16:41 UTC
    Does this help?
    /[<.*?>]*\d{7}[<.*?>]*/