In message <[EMAIL PROTECTED]>, "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>