[opencms-dev] regex
Charles Johnson
cehjohnson at gmail.com
Mon Dec 1 16:43:50 CET 2014
On 01/12/14 15:01, Paoletti Corrado wrote:
> Both lines return false while http://www.regexr.com/ says I should have two true!
That's because String.matches operates on the /whole/ of the input. So
you'd need
out.println( "1) " + test.matches("\\bclienti\\b".*) );
etc.
Charles Johnson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20141201/ea442f41/attachment.htm>
More information about the opencms-dev
mailing list