Michael via tde-users wrote:
Hi All,
Yeah, I don’t have a decent grasp on regex, but I need one (I think) for a
KMail filter. I need to match this one line in a Subject:
***SPAM*** lfd on
srv07.srv07-inet-design.com: 93.174.93.68
(NL/Netherlands/-) blocked for port scanning
(the spam part is intermittent), based on these two pieces:
‘lfd on srv07.srv07-inet-design.com:’
-and-
‘) blocked for port scanning’
Is there a way to do that without regex? If not, anyone know a solution
off
the top of their head? Or a really good guide to regex (that doesn’t make
your head swim)?
You can use kregexpeditor from kregexpeditor-trinity - it took me 3min to
build the rules for each line with middle level regexp.
^.*srv[\d]{2,2}\.srv[\d]{2,2}-inet-design\.com.*$
^.*\)\sblocked\sfor\sport\sscanning.*$
---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-users-unsubscribe(a)lists.pearsoncomputing.net
For additional commands, e-mail: trinity-users-help(a)lists.pearsoncomputing.net
Read list messages on the web archive:
http://trinity-users.pearsoncomputing.net/
Please remember not to top-post:
http://trinity.pearsoncomputing.net/mailing_lists/#top-posting