Jump to content

Regex


AV1611

Recommended Posts

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]
Link to comment
Share on other sites

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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.