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 cod= e

 

rule "Hello World"

      when

          &nb= sp; m : Message(message matches "Hello*")

      then

          &nb= sp; System.out.println( "Hello World"<= span style=3D'font-size:10.0pt;font-family:"Courier New";color:black'>); <= /font>

end

 

 

 

And the value set in the message is “Hello World= 221;. 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 regul= ar expression? Can we use “*”

 

 

Thanks,

Ashwini

DISCLAIMER=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= 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 inten= ded recipient, you are not authorized to read, retain, copy, print, distribu= te or use this message. If you have received this communication in error, pl= ease notify the sender and delete all copies of this message. Persistent Sys= tems Pvt. Ltd. does not accept any liability for virus infected mails.