AV1611 Posted March 13, 2006 Share Posted March 13, 2006 I need to build a regex expression that is used for filtering spam... Someone has come up with a clever way around my filters... You can see the word VIAGRA between the <span> tags... then he floats the other characters to the right... bay's and content can't seem to find it... I need to regex it, I guess... but don't know how... Of course any other suggestions would be MOST helpful...Any Suggestions???Here is how he does it:[code]<DIV><FONT face=3DArial size=3D3><FONT color=3D#243DEB><span style=3D"float:right"> t </span>V<span style=3D"float:right"> x </span>i<span style=3D"float:right"> y </span>a<span style=3D"float:right"> u </span>g<span style=3D"float:right"> i </span>r<span style=3D"float:right"> b </span>a</FONT>[/code] Quote Link to comment Share on other sites More sharing options...
Zane Posted March 13, 2006 Share Posted March 13, 2006 if that's the exact format of the email then this may work[code](v|V)<span.*</span>(i|I)<span.*</span>(a|A)<span.*</span>(g|G)<span.*</span>(r|R)<span.*</span>(a|A)</font>[/code]can't guarentee anything though Quote Link to comment Share on other sites More sharing options...
AV1611 Posted March 14, 2006 Author Share Posted March 14, 2006 I hate regex because I ain't any good at them, but that looks like it might do the trick![!--quoteo(post=354667:date=Mar 13 2006, 04:48 PM:name=zanus)--][div class=\'quotetop\']QUOTE(zanus @ Mar 13 2006, 04:48 PM) [snapback]354667[/snapback][/div][div class=\'quotemain\'][!--quotec--]if that's the exact format of the email then this may work[code](v|V)<span.*</span>(i|I)<span.*</span>(a|A)<span.*</span>(g|G)<span.*</span>(r|R)<span.*</span>(a|A)</font>[/code]can't guarentee anything though[/quote] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.