<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 01/12/14 15:01, Paoletti Corrado
wrote:<br>
</div>
<blockquote
cite="mid:93F7264C41E13E4CB639B1C7415FB73F485EE9@mi1exmbx02"
type="cite">
<pre wrap="">Both lines return false while <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.regexr.com/">http://www.regexr.com/</a> says I should have two true!</pre>
</blockquote>
SORRY - my previous contained a typo. Should have been:<br>
<br>
That's because String.matches operates on the <i>whole</i> of the
input. So you'd need<br>
<pre wrap="">out.println( "1) " + test.matches("\\bclienti\\b.*") );
</pre>
etc.<br>
<br>
Charles Johnson<br>
</body>
</html>