@Greg<br>Using &quot;in&quot; is better that the multiple || == &quot;18&quot; ?<br>It has some relation with indexing?<br>With multiple &quot;|| == &quot; the RETE network will generate one alpha node for each value right?<br>
But for &quot;in&quot; I don&#39;t imagine how it works, I also realize that it&#39;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">&lt;<a href="mailto:sunray@davisprogramming.com">sunray@davisprogramming.com</a>&gt;</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 &quot;(18|21|33|28|40|41)&quot;)<br>
<br>
     m : Customer( age matches &quot;(18|2[18]|33|4[01])&quot;)<br>
<br>
Did you try<br>
<br>
    m : Customer( age in (&quot;18&quot;,&quot;21&quot;,&quot;33&quot;,&quot;28&quot;,&quot;40&quot;,&quot;41&quot;))<br>
<br>
<br>
<br>
I don&#39;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 &quot;Salaboy&quot; Mauricio -<br>