Did you try "(\.*)/(\d)$"? 

Peter

 

> -----Original Message-----
> From: Mansour Al Akeel [mailto:[email protected]] 
> Sent: Monday, June 01, 2009 12:45 PM
> To: [email protected]
> Subject: Re: Regexp matcher with digits
> 
> Can someone kindly answer this question and give an example 
> about how to use regex and retrieve the matches. I am stuck 
> with a project that's writen in Cocoon and I need this to continue.
> 
> 
> On Sun May 31,2009 01:54 am, Mansour Al Akeel wrote:
> > Ok, let's clarify this and put it in different words. I am able to 
> > match on the digits part but not able to obtain this digits
> > 
> > <map:match  type="regexp" pattern="\.*/\d$"> 
> >     ......
> >     .....
> >     <map:parameter name="href" value="{1}"/>
> >     <map:parameter name="depth" value="{2}"/>
> > 
> > The variable {1} is matching and I can obtain as expected, 
> but {2} is 
> > not.
> > 
> > 
> > Can someone please share the knowledge and direct me to 
> resolve this ? 
> > 
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to