On Wed, 2007-08-01 at 12:22 -0400, Boissé Denis wrote:
> Hi,
> 
>  
> 
> I have Cocoon version 2.1.10
> 
>  
> 
> Do regexpUriMatcher work with Ungreedy Matching:
> 
> Example: <map:match type="regexp" pattern="^temp/(.*?)/$">   
> 
>  
> 
> Usually ungreedy matcher are in a form (.*?)  and suppose to match
> something like temp/hello/ or temp/hi/ 
> 
> but not matching something like temp/hello/dir/  (that’s what happen
> to me)

Ungreedy means that it should match as little as possible but as much as
necessary to make the whole pattern succeed.

What you apparently want to achieve is pattern="^temp/[^/]+/$", or even
simpler <map:match type="wildcard" pattern="temp/*/"/>.

HTH, Alfred.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to