On Wed, 24 Jul 2002, Michael Meltzer wrote:
-hello
-
-how can I match a word in the body (some text ThisWord some text)
-and pipe this word to a Program ?
Well, start with this expression I use to find and replace bad words...
eregi_replace("[[:<:]]badword[[:>:]]","goodword",$inputstring);
The key is the regular expresion used to find words ignoring the usual
white space characters and puncuation.
I suppose this will work in the eregi() function too so if the word is
found then the function returns a true and you can act accordingly.
-
-Many thanks in advance
-
-Michael
-
---
-+---- Michael Meltzer ---+-----------------------------------------+
-| SICAD Geomatics | EMail :
Michael(_dot_)Meltzer(_at_)sicad(_dot_)de |
-| Otto-Hahn-Ring 6 | Phone : +49-89-636-46239 |
-| 81739 Muenchen | Fax : +49-89-636-51313 |
-+------------------------+-----------------------------------------+
-
-
-
-_______________________________________________
-procmail mailing list
-procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
-http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
-
**************************************
John Huggins
VANet
jhuggins(_at_)va(_dot_)net
http://www.va.net/
**************************************
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail