RegExp for PostMaster Filter

Hi - I am using OTRS 2.0b2, and would like to get a couple hints on using regular expressions in the postmaster filter GUI interface. ==== Match: Header 1 - Subject .... Value: ?????? ==== Set: Header 1 - X-OTRS-Priority ... Value: Urgent If I want to check a subject line for the string 911 or 119, what regexp should I use? Would it be something like: ^.*(911|119).* ? If someone could kindly give me a sample, that would be wonderful. Thanks so much. Kind Regards, Rick <<-<<-<<-<<-<<-<<-<<-<<-<<-<<- Rick Cogley (rick.cogley@esolia.co.jp) Tel: 03-5940-6880 | Fax: 03-5940-6881 | Cell: 090-4423-5475 (Outside Japan, remove leading zero-+81-3-5940-6880) English: www.esolia.com http://www.esolia.com/ | Japanese: www.esolia.co.jp http://www.esolia.co.jp/ Bilingual IT solutions and management firm-eSolia. <<-<<-<<-<<-<<-<<-<<-<<-<<-<<-

Hi Rick, On Thu, Jun 16, 2005 at 01:09:11PM +0900, Cogley, Rick wrote:
Hi - I am using OTRS 2.0b2, and would like to get a couple hints on using regular expressions in the postmaster filter GUI interface.
You can use regexes or normal strings. So the following tow examples will work: sales@otrs.de sales\@otrs\.de
==== Match: Header 1 - Subject .... Value: ??????
==== Set: Header 1 - X-OTRS-Priority ... Value: Urgent
If I want to check a subject line for the string 911 or 119, what regexp should I use? Would it be something like:
^.*(911|119).*
Yes, this regex IMHO matches, if 119 or 911 is contained in the subject.
Rick
Best regards, Christian -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!
participants (2)
-
Christian Schoepplein
-
Cogley, Rick