[otrs] Regex in process tickets

413 views
Skip to first unread message

Ohliger, Christoph

unread,
Nov 11, 2013, 10:30:25 AM11/11/13
to User questions and discussions about OTRS.

Hi,

 

has anyone tested the regex function in transition. When using “qr{\bcat\b}xms” as the match condition I would assume that it matches when the dynamic field has the value cat …

 

regards

Christoph

 



 

Nils Leideck (LX)

unread,
Nov 11, 2013, 2:45:36 PM11/11/13
to User questions and discussions about OTRS.
Did you try \bcat\b only?

On 11.11.2013, at 16:30, Ohliger, Christoph <Christop...@fh-rosenheim.de> wrote:

has anyone tested the regex function in transition. When using “qr{\bcat\b}xms” as the match condition I would assume that it matches when the dynamic field has the value cat …

Cheers, Nils
-- 
http://webint.cryptonode.de / a Fractal project

Ohliger, Christoph

unread,
Nov 11, 2013, 4:10:43 PM11/11/13
to User questions and discussions about OTRS.
right now not, because its documented in another way

  • 'Regex': The field value can be tested with a regular expression. It is important that 'Match' contains qr{}xms as a base condition. Between the braces the actual regular expression can be noted.                                 


    Von: otrs-b...@otrs.org [otrs-b...@otrs.org]" im Auftrag von "Nils Leideck (LX) [nils.l...@leidex.net]
    Gesendet: Montag, 11. November 2013 20:45
    Bis: User questions and discussions about OTRS.
    Betreff: Re: [otrs] Regex in process tickets

Ohliger, Christoph

unread,
Nov 12, 2013, 2:51:23 AM11/12/13
to User questions and discussions about OTRS.

Nils,

 

seems that the documentation isn´t correct …

 

regards

Christoph

 

Von: otrs-b...@otrs.org [mailto:otrs-b...@otrs.org] Im Auftrag von Nils Leideck (LX)
Gesendet: Montag, 11. November 2013 20:46
An: User questions and discussions about OTRS.
Betreff: Re: [otrs] Regex in process tickets

 

Did you try \bcat\b only?

Nils Leideck (LX)

unread,
Nov 12, 2013, 4:59:18 AM11/12/13
to User questions and discussions about OTRS.
Did you already try the reg exp without the surroundings?

---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Ohliger, Christoph

unread,
Nov 12, 2013, 7:09:55 AM11/12/13
to User questions and discussions about OTRS.

Yes, it works with this simple example. But I have some trouble with more complex regex expression especially with AND/OR condition and I currently assume that anything isn´t working correct within OTRS. I am currently doing further tests (OTRS 3.2.12).

Ohliger, Christoph

unread,
Nov 13, 2013, 8:07:02 AM11/13/13
to User questions and discussions about OTRS.

Its more an regex issue then OTRS. My process or the regex always fail when a dynamic field is NULL (no value). Right now I haven´t found the correct regex to verify for empty values, I have checked \0 , \x00  ,  .{0}.

 

Regards

Christoph

Gerald Young

unread,
Nov 13, 2013, 8:28:53 AM11/13/13
to User questions and discussions about OTRS.
Please describe what you want to match and what you don't want to match.

Ohliger, Christoph

unread,
Nov 13, 2013, 9:20:39 AM11/13/13
to User questions and discussions about OTRS.
I want to match that a value is NOT cat OR dog and that the field maybe
empty.

((?!cat)|(?!dog)) matches if the value is NOT cat OR dog, but it doesn´t
match if the field is empty. As described I already tried
(.{0})|((?!cat)|(?!dog)) for example.


-----Ursprüngliche Nachricht-----
Von: otrs-b...@otrs.org [mailto:otrs-b...@otrs.org] Im Auftrag von
Gerald Young
Gesendet: Mittwoch, 13. November 2013 14:29

Gerald Young

unread,
Nov 13, 2013, 11:23:20 AM11/13/13
to User questions and discussions about OTRS.
"not" is notoriously difficult to match. ^$ is sometimes used for
"nothing" ... YMMV

On Wed, Nov 13, 2013 at 9:20 AM, Ohliger, Christoph
Reply all
Reply to author
Forward
0 new messages