[opencms-dev] regex
Paoletti Corrado
c.paoletti at fineco.it
Mon Dec 1 17:59:46 CET 2014
Hi Charles,
it works. Thanks a lot.
Corrado
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Charles Johnson
Sent: lunedì 1 dicembre 2014 16:47
To: The OpenCms mailing list
Subject: Re: [opencms-dev] regex
On 01/12/14 15:01, Paoletti Corrado wrote:
Both lines return false while http://www.regexr.com/ says I should have two true!
SORRY - my previous contained a typo. Should have been:
That's because String.matches operates on the whole of the input. So you'd need
out.println( "1) " + test.matches("\\bclienti\\b.*<file:///\\bclienti\b.*>") );
etc.
Charles Johnson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20141201/d16a12ee/attachment.htm>
More information about the opencms-dev
mailing list