cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Binkley, Peter" <Peter.Bink...@ualberta.ca>
Subject RE: Regexp matcher with digits
Date Mon, 01 Jun 2009 19:11:01 GMT
Did you try "(\.*)/(\d)$"? 

Peter

 

> -----Original Message-----
> From: Mansour Al Akeel [mailto:mansour.alakeel@gmail.com] 
> Sent: Monday, June 01, 2009 12:45 PM
> To: users@cocoon.apache.org
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message