[otrs] Regex in process tickets

Ohliger, Christoph Christoph.Ohliger at fh-rosenheim.de
Wed Nov 13 14:20:39 GMT 2013


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-bounces at otrs.org [mailto:otrs-bounces at otrs.org] Im Auftrag von
Gerald Young
Gesendet: Mittwoch, 13. November 2013 14:29
An: User questions and discussions about OTRS.
Betreff: Re: [otrs] Regex in process tickets

Please describe what you want to match and what you don't want to match.

On Wed, Nov 13, 2013 at 8:07 AM, Ohliger, Christoph
<Christoph.Ohliger at fh-rosenheim.de> wrote:
> 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
>
>
>
> Von: otrs-bounces at otrs.org [mailto:otrs-bounces at otrs.org] Im Auftrag 
> von Ohliger, Christoph
> Gesendet: Dienstag, 12. November 2013 13:10
>
>
> An: 'User questions and discussions about OTRS.'
> Betreff: Re: [otrs] Regex in process tickets
>
>
>
> 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).
>
>
>
> Von: otrs-bounces at otrs.org [mailto:otrs-bounces at otrs.org] Im Auftrag 
> von Nils Leideck (LX)
> Gesendet: Dienstag, 12. November 2013 10:59
> An: User questions and discussions about OTRS.
> Betreff: Re: [otrs] Regex in process tickets
>
>
>
> Did you already try the reg exp without the surroundings?
>
>
>
> On 12.11.2013, at 08:51, Ohliger, Christoph 
> <Christoph.Ohliger at fh-rosenheim.de> wrote:
>
>
>
> Nils,
>
>
>
> seems that the documentation isn´t correct 

>
>
>
> regards
>
> Christoph
>
>
>
> Von: otrs-bounces at otrs.org [mailto:otrs-bounces at 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?
>
>
>
> On 11.11.2013, at 16:30, Ohliger, Christoph 
> <Christoph.Ohliger at 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
>
>
> ---------------------------------------------------------------------
> 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
>
>
>
> Cheers, Nils
>
> --
> http://webint.cryptonode.de / a Fractal project
>
>
>
>
> ---------------------------------------------------------------------
> 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
---------------------------------------------------------------------
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5588 bytes
Desc: not available
URL: <http://lists.otrs.org/pipermail/otrs/attachments/20131113/91843ff9/attachment.bin>


More information about the otrs mailing list