Giacomo Pati wrote:

> 
> Ok, looking at those matching sample we need to define how matching is 
> suppose to work. Consider the following sample
> 
> Pattern               String
> **/*/**               foo/bar/baz/buz/
> 
> What is the result you expect for {1}, {2}, and {3} ? Possible values 
> could be:
> 
> {1}="foo"             {2}="bar"       {3}="baz/buz"
> {1}="foo/bar"         {2}="baz"       {3}="buz"
> {1}="foo/bar/baz"     {2}="buz"       {3}=""
> 
> which one do you think is the correct one?
> 
:)

I would expect the first result - shortest matching first :)
But I think, it's not that important what result the matcher delivers as
this pattern is ambiguous. It's important that unambigous patterns (like
*/**) work :)

Carsten

Reply via email to