[rules-users] RegEx in LHS

Edson Tirelli tirelli at post.com
Wed Nov 28 05:45:07 EST 2007


   Markus,

   The engine processes the mappings in the order they are written, so you
must always write more restrictive patterns first and less restrictive
patterns second:

[condition][]Title contains not {value}=title not matches {value}
[condition][]Title contains {value}=title matches {value}

   []s
   Edson

2007/11/28, Markus Helbig <mhelbig81 at googlemail.com>:
>
> Hi all,
>
> i'd like to have following DSL conditions
>
> [condition][]Title contains {value}=title matches {value}
> [condition][]Title contains not {value}=title not matches {value}
>
>
> Currently (using Drools 4.0.3) it seems the parsers resolves to the
> first condtion and is matching the word "not" to {value}, so i tried
>
> [condition][]Title contains\s+{value}=title matches {value}
> [condition][]Title contains\snot\s{value}=title not matches {value}
>
>
> but this doesn't help, because second one again matches to the first
> rule ... also it is missing one parameter ...
>
> Any solutions?
>
> Cheers
>
> Markus
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  JBoss Drools Core Development
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071128/f8171123/attachment.html 


More information about the rules-users mailing list