in reply to regex help or pointer to module needed
One example is hardly enough to guess what it is about that sample that makes it definitively spam?
If the determining pattern is that an open tag is follow by text that is followed by a non-matching close tag, then something like this might work.
m[ < ( [^>]+ ) > .*? </ (?! \1> ) ]x
There are probably many ways that this could be improved, but it would require more samples to decide how.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex help or pointer to module needed
by Xxaxx (Monk) on Jun 08, 2004 at 08:01 UTC |