<div>Hi Michael,</div>
<div> </div>
<div> Thanks for your help. Its working now. <font color="#550055">"^.*888.*$", </font></div>
<div> what is the indication of <font color="#550055">matches "^. and *$", indicates?</font></div>
<div> Can you please give some url where in I can get complete syntax of writing .drl's.</div>
<div> </div>
<div>Thanks again for your response.<br><br> </div>
<div><span class="gmail_quote">On 2/6/08, <b class="gmail_sendername">Anstis, Michael (M.)</b> <<a href="mailto:manstis1@ford.com">manstis1@ford.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Matches uses regular expressions not (SQL) wildcards.<br><br>I suggest you reformat your search string.<br>
<br>-----Original Message-----<br>From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of hanumesh.m<br>
Sent: 06 February 2008 10:16<br>To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>Subject: [rules-users] Wild card characters in .drl file<br><br><br>Hi,<br><br>I need to use wild card chars matching in .drl file.<br>
(Assume field filename has data as "XYZ-888-10022008")<br><br>If the filename contains string "888" in it<br> then target Queue will be "jms://INBOUND.888.EDI"<br><br>I am writing a rule as follows:<br>
<br>rule "Test 888"<br> no-loop<br> when<br> m: Message( fileName matches "*888*", message : message )<br> then<br> System.out.println( "In EATech.drl File" );<br>
m.setTargetEdiQ("jms://INBOUND.888.EDI");<br> update( m );<br>end<br><br>But its not working. Error is "Dangling meta character '*' near index 0<br>*888*"<br><br>If anyone has used wild card chars in .drl file please respond<br>
--<br>View this message in context:<br><a href="http://www.nabble.com/Wild-card-characters-in-.drl-file-tp15306359p15306359">http://www.nabble.com/Wild-card-characters-in-.drl-file-tp15306359p15306359</a>.<br>html<br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<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">https://lists.jboss.org/mailman/listinfo/rules-users</a><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">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br><br></blockquote></div><br>