RegEx for PostMaster filter

Moderator: crythias

Locked
PiotrIr
Znuny newbie
Posts: 25
Joined: 02 Sep 2015, 17:37
Znuny Version: 4 Patch Level 11

RegEx for PostMaster filter

Post by PiotrIr »

I’m trying to match body of e-mail with following pattern

condition

Body @micr
e-mail headers
X-OTRS-CustomerNo Microsoft

The trick is I would like to set this as case insentitive so could use @Micr, @miCr or whatever. Unfortunately can’t find RegEx which would actually work. From tester looks it should be:
/\@\bmicr\/i
But this doesn’t work. Could you advise please?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: RegEx for PostMaster filter

Post by crythias »

I believe the case is insensitive anyway. If not, [mM][iI][cC][rR][oO][sS][oO][fF][tT] is an option.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked