ExternalTicketNumberRecognition - RegEx - different format of number

Moderator: crythias

Locked
KepTom
Znuny newbie
Posts: 13
Joined: 11 Mar 2014, 13:13
Znuny Version: 5.0.10
Location: Poland

ExternalTicketNumberRecognition - RegEx - different format of number

Post by KepTom »

Hello world :)
For our client we administer OTRS system.
Our client run a web shop
WEB shop system sends notification to client and to OTRS.
But we have a problem because order number on the confirmation to client is different from confirmation to OTRS. Difference is little but significant.
Format order number to client is ddddd/dddd and for OTRS is ddddd / dddd (space).
We have tried use PostMaster::PreFilterModule###000-ExternalTicketNumberRecognition but we can't find good RegEx for this.
Now we use ((\d{5}\s\/\s\d{4})|(\d{5}\/\d{4})) but this work only for this same format of order number. We would like to the order with format ddddd/dddd will be merge with ticket with order number with format ddddd / dddd (with space).
Is it possible ?
Could you help me ?
OTRS 5.x.x
Ubuntu 12.4 server
MySQL DB
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: ExternalTicketNumberRecognition - RegEx - different format of number

Post by crythias »

You might take a look at my take on this. viewtopic.php?f=60&t=22681 and edit to your needs.
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