<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=520225410-06022008><FONT face=Arial 
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=520225410-06022008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=520225410-06022008><FONT face=Arial 
color=#0000ff size=2>Christian Spurk gave a good link to regular expression 
syntax.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=520225410-06022008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=520225410-06022008><FONT face=Arial 
color=#0000ff size=2>DRL is well documented in the Drools documentation (or use 
the guided editor in Eclipse).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=520225410-06022008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=520225410-06022008><FONT face=Arial 
color=#0000ff size=2>With kind regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=520225410-06022008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=520225410-06022008><FONT face=Arial 
color=#0000ff size=2>Mike</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org 
  [mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>Hanumesh 
  Mekala<BR><B>Sent:</B> 06 February 2008 10:46<BR><B>To:</B> Rules Users 
  List<BR><B>Subject:</B> Re: [rules-users] Wild card characters in .drl 
  file<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV>Hi Michael,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; Thanks for your help. Its working now.&nbsp;&nbsp; 
  <FONT color=#550055>"^.*888.*$", </FONT></DIV>
  <DIV>&nbsp;&nbsp;&nbsp; what is the indication of <FONT color=#550055>matches 
  "^.&nbsp; and&nbsp; *$", indicates?</FONT></DIV>
  <DIV>&nbsp;&nbsp;&nbsp; Can you please give some url where in I can get 
  complete syntax of writing .drl's.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Thanks again for your response.<BR><BR>&nbsp;</DIV>
  <DIV><SPAN class=gmail_quote>On 2/6/08, <B class=gmail_sendername>Anstis, 
  Michael (M.)</B> &lt;<A 
  href="mailto:manstis1@ford.com">manstis1@ford.com</A>&gt; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then target Queue 
    will be "jms://INBOUND.888.EDI"<BR><BR>I am writing a rule as 
    follows:<BR><BR>rule "Test 
    888"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;no-loop<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;when<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m: 
    Message( fileName matches "*888*", message : message 
    )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println( 
    "In EATech.drl File" 
    );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m.setTargetEdiQ("jms://INBOUND.888.EDI");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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></BLOCKQUOTE></BODY></HTML>