[rules-users] RegEx in LHS

Markus Helbig mhelbig81 at googlemail.com
Wed Nov 28 04:55:06 EST 2007


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



More information about the rules-users mailing list