<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sch=
emas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>Has anyone used the &#8220;matches&#8221; operator? <o:p>=
</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>In our application we need to support startWith, endsWith
operators for string variable. I am thinking of using matches operator. But=
 the
&#8216;matches&#8217; operator is not working. I am trying the following cod=
e<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><b><font size=3D2 color=
=3D"#960000"
face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier Ne=
w";
color:#960000;font-weight:bold'>rule</span></font></b><font size=3D2 color=
=3Dblack
face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier Ne=
w";
color:black'> </span></font><font size=3D2 color=3Dgreen face=3D"Courier New=
"><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:green'>&quot;Hello
World&quot;</span></font><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></fon=
t></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 color=3Dbl=
ack
face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier Ne=
w";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><b><font size=3D2
color=3D"#960000" face=3D"Courier New"><span style=3D'font-size:10.0pt;font-=
family:
"Courier New";color:#960000;font-weight:bold'>when</span></font></b><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"C=
ourier New"'><o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 color=3Dbl=
ack
face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier Ne=
w";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; m
: Message(message matches </span></font><font size=3D2 color=3Dgreen
face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier Ne=
w";
color:green'>&quot;Hello*&quot;</span></font><font size=3D2 color=3Dblack
face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier Ne=
w";
color:black'>)</span></font><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></fon=
t></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 color=3Dbl=
ack
face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier Ne=
w";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><b><font size=3D2
color=3D"#960000" face=3D"Courier New"><span style=3D'font-size:10.0pt;font-=
family:
"Courier New";color:#960000;font-weight:bold'>then</span></font></b><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"C=
ourier New"'><o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 color=3Dbl=
ack
face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier Ne=
w";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; System.out.println(
</span></font><font size=3D2 color=3Dgreen face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:green'>&quot;Hello
World&quot;</span></font><font size=3D2 color=3Dblack face=3D"Courier New"><=
span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'>); </span><=
/font><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"C=
ourier New"'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><b><font size=3D2 color=3D"#960000" face=3D"Courier New=
"><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:#960000;font-weigh=
t:
bold'>end</span></font></b><font size=3D2 face=3DArial><span style=3D'font-s=
ize:10.0pt;
font-family:Arial'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>And the value set in the message is &#8220;Hello World&#8=
221;.
But it is not going into the then clause.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>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 &#8220;*&#8221;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>Thanks,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>Ashwini<o:p></o:p></span></font></p>

</div>

<p>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.</p>
</body>

</html>