About FileSystem.getPathMatcher glob groups' whitespace
Alan Bateman
Alan.Bateman at oracle.com
Wed Sep 19 02:27:37 PDT 2012
On 19/09/2012 03:30, 向雅 wrote:
> Sorry, forgot the subject:)
> renew
>
> FileSystem.getPathMatcher glob pattern groups not accept whitespace.
> f.e. "*.{jar, zip}" will not match "classes.zip" path.
>
> Advice to ignore the whitespace.
>
> Agree?
>
> 致敬
> 向雅
I'm not sure that I understand your question but "*.{jar,zip}" will
match paths that end in ".jar" or ".zip". With the glob in your mail
then it will match paths that end in ".jar" or ".<space>zip".
-Alan.
More information about the nio-dev
mailing list