You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2001/12/11 23:13:44 UTC

Re: using Split with GlobPattern [!/]|

In message <31...@Pulinco_1>, Markus Schlegel 
writes:
>I try to use Util.split() with the Pattern "[!/]|" compiled with
>GlobCompiler, matched with Perl5Matcher.
>
>Splitting "foo/|bar" correctly results in {"foo/|bar"}.
>
>Splitting "foo|bar" results in {"fo","bar"}, where I expected to have
>{"foo", "bar"}.

This is behaving correctly.  For glob expressions, [!/] means any character
but /.  So 'o|' matches and 'foo|bar' is split into 'fo' and 'bar'

daniel



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>