jakarta-oro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: Perl5 and Alternate strange behavior
Date Thu, 14 Nov 2002 20:30:12 GMT

In message <PBEAIEGCIFKKEFMIOPDCMEPECKAA.jerome.jacobsen@gentootech.com>, "Jero
me Jacobsen" writes:
>I have a Pattern like this:
>Pattern pattern = compiler.compile("|STUFF");
>
>I would expect both of the following to return true:
>matcher.matches("", pattern);       // returns true
>matcher.matches("STUFF", pattern);  // returns false!

matches() is not the same as contains() and matches(input, "pattern")
is not the same as matches(input, "^pattern$").  Look at the "Note:"
in the javadocs for Perl5Matcher.matches() for an explanation.

daniel



--
To unsubscribe, e-mail:   <mailto:oro-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:oro-user-help@jakarta.apache.org>


Mime
View raw message