@Greg<br>Using "in" is better that the multiple || == "18" ?<br>It has some relation with indexing?<br>With multiple "|| == " the RETE network will generate one alpha node for each value right?<br>
But for "in" I don't imagine how it works, I also realize that it's not included in the official docs.<br><br><br><div class="gmail_quote">On Tue, Nov 17, 2009 at 7:22 PM, Jared Davis <span dir="ltr"><<a href="mailto:sunray@davisprogramming.com">sunray@davisprogramming.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Here are two ways to write the regular expression.<br>
<br>
m : Customer( age matches "(18|21|33|28|40|41)")<br>
<br>
m : Customer( age matches "(18|2[18]|33|4[01])")<br>
<br>
Did you try<br>
<br>
m : Customer( age in ("18","21","33","28","40","41"))<br>
<br>
<br>
<br>
I don't know which solution is faster. I think that would<br>
be an interesting test.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino "Salaboy" Mauricio -<br>