procmail
[Top] [All Lists]

Re. regex to detect 20+ characters

2010-08-12 12:07:54
Hi
Any help, much appreciated.
Re. regex to detect more than 20 alphabetic characters without a space in
the subject of an email

I'm stuck. I've been searching for how to write a regex for procmail to
detect a string of more than 20 characters without a space in the subject
of an email.
To be more precise:
- 20 or more characters (alphabetic or numeric),
- Ignore if the string contains a space,
- Ignore if the string contains: @, /, -, _  (i.e. ignore email or web
addresses).

I have some basic regex patterns working in procmail but I'm new to regex.
 I'm pretty sure the following are wrong, but they might shed light on
what I'm trying to do:
^Subject: 
((_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)^(_at_)^\(_dot_))
^Subject: >20a-z


Thanks
Andrew
----------------------
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Re. regex to detect 20+ characters, procmail <=