Yes, you should be able to select bound the field you want to use as the matches expression and pick the bound variable when using the &quot;matches&quot; operator.<br><br>I checked with 5.4 and constructed the following (see attached screen shot too):-<br>
<br>Applicant( $n : name )<br>Applicant( name matches $n )<br><br>Obviously you won&#39;t use Applicant etc.<br><br><div class="gmail_quote">On 28 August 2012 15:34, TonyN <span dir="ltr">&lt;<a href="mailto:tony.n.nguyen@boeing.com" target="_blank">tony.n.nguyen@boeing.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I would like to know if it is possible to use binded variable in BRL (using<br>
matches).  For example,<br>
<br>
I&#39;d like to enter this in &#39;matches&#39;,<br>
.*_$itemID<br>
(where $itemID is a binded variable set in another fact).<br>
<br>
thx,<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/The-use-of-matches-in-Guvnor-and-binded-variables-tp4019417.html" target="_blank">http://drools.46999.n3.nabble.com/The-use-of-matches-in-Guvnor-and-binded-variables-tp4019417.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</blockquote></div><br>