jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fuller, Robert" <robert.ful...@compaq.com>
Subject RE.java bugfix
Date Tue, 22 Aug 2000 10:24:32 GMT

I stumbled upon a bug in RE.java whereby the casefold match flag is ignored
for a regular expression containing no special regex characters.  The
following code identifies the bug.

if(((new RE(".*fred", RE.MATCH_CASEINDEPENDENT)).match("Fred was
(((new RE("fred", RE.MATCH_CASEINDEPENDENT)).match("Fred was here"))==false)
System.err.println("a bug");

Attached is a patch to correct the problem.

Best Regards,
Robert Fuller
Galway, Ireland


View raw message