[rules-users] Wild card characters in .drl file

Hanumesh Mekala hanumesh.m at gmail.com
Wed Feb 6 06:25:09 EST 2008


Thx Christian Spurk for your response.!


On 2/6/08, Christian Spurk <Christian.Spurk at dfki.de> wrote:
>
> Hi!
>
> hanumesh.m wrote:
> >                m: Message( fileName matches "*888*", message : message )
> > [...]
> >
> > But its not working. Error is "Dangling meta character '*' near index 0
> > *888*"
>
> You have to use valid Java Regular Expressions (cf.
> http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html).
> What you probably meant was something like this:
>
> m: Message( fileName matches "^.*888.*$", message : message )
>
> HTH,
> Christian
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080206/03a41153/attachment.html 


More information about the rules-users mailing list