[rules-users] Wild card characters in .drl file
Christian Spurk
Christian.Spurk at dfki.de
Wed Feb 6 05:26:07 EST 2008
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
More information about the rules-users
mailing list