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
https://forums.phpfreaks.com/topic/4868-regex/
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
https://forums.phpfreaks.com/topic/4868-regex/#findComment-17196
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.