Jump to content


Photo

Regex


  • Please log in to reply
2 replies to this topic

#1 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 13 March 2006 - 08:51 PM

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:

<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>


#2 Zane

Zane
  • Administrators
  • Advanced Member
  • 4,134 posts

Posted 13 March 2006 - 09:48 PM

if that's the exact format of the email then this may work
(v|V)<span.*</span>(i|I)<span.*</span>(a|A)<span.*</span>(g|G)<span.*</span>(r|R)<span.*</span>(a|A)</font>
can't guarentee anything though

btn_donate_SM.gif Want to thank me? Contribute to my PayPal piggy-bank
 

172938.png

#3 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 14 March 2006 - 12:12 AM

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) View Post[/div][div class=\'quotemain\'][!--quotec--]
if that's the exact format of the email then this may work
(v|V)<span.*</span>(i|I)<span.*</span>(a|A)<span.*</span>(g|G)<span.*</span>(r|R)<span.*</span>(a|A)</font>
can't guarentee anything though
[/quote]





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users