[rules-users] Need Syntax help for a string match

Jared Davis sunray at davisprogramming.com
Tue Nov 17 16:22:36 EST 2009


Here are two ways to write the regular expression.

     m : Customer( age matches "(18|21|33|28|40|41)")

     m : Customer( age matches "(18|2[18]|33|4[01])")

Did you try

    m : Customer( age in ("18","21","33","28","40","41"))
 


I don't know which solution is faster.  I think that would
be an interesting test.











More information about the rules-users mailing list