[rules-users] matches operator
Mark Proctor
mproctor at codehaus.org
Mon Jul 9 07:15:31 EDT 2007
Read up on regular expression, what you just wrote there is not valid.
Mark
Ashwini Joshi wrote:
>
> Hi,
>
>
>
>
>
> Has anyone used the "matches" operator?
>
> In our application we need to support startWith, endsWith operators
> for string variable. I am thinking of using matches operator. But the
> 'matches' operator is not working. I am trying the following code
>
>
>
> *rule* "Hello World"
>
> *when*
>
> m : Message(message matches "Hello*")
>
> *then*
>
> System.out.println( "Hello World");
>
> *end*
>
>
>
>
>
>
>
> And the value set in the message is "Hello World". But it is not going
> into the then clause.
>
>
>
> If anyone has already used matches operator I would like to know how
> we can use it for startswith, endsWith. How do we specify the regular
> expression? Can we use "*"
>
>
>
>
>
> Thanks,
>
> Ashwini
>
> DISCLAIMER ========== This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Pvt. Ltd. It is intended only for the use of the individual or entity
> to which it is addressed. If you are not the intended recipient, you
> are not authorized to read, retain, copy, print, distribute or use
> this message. If you have received this communication in error, please
> notify the sender and delete all copies of this message. Persistent
> Systems Pvt. Ltd. does not accept any liability for virus infected mails.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20070709/692bb688/attachment.html
More information about the rules-users
mailing list