<set>-value from <from> match?

6 views
Skip to first unread message

Horst Gutmann

unread,
Nov 12, 2009, 4:38:17 AM11/12/09
to UrlRewrite
Hi :-)

Is it possible to use matches from the <from> regex within the <set>
tag? I basically want to store a matching substring into the request
attributes but I couldn't find any documentation on this :-)

Thank you

Regards, Horst

Wim De Smet

unread,
Nov 15, 2009, 5:45:48 AM11/15/09
to urlre...@googlegroups.com
Hi Horst,

On Thu, Nov 12, 2009 at 10:38 AM, Horst Gutmann <ho...@zerokspot.com> wrote:
>
> Hi :-)
>
> Is it possible to use matches from the <from> regex within the <set>
> tag? I basically want to store a matching substring into the request
> attributes but I couldn't find any documentation on this :-)

I can't find it in the documentation myself right now, but I think
I've done it before. If you can't get it working I'll look if I can
find an example for you.

regards,
Wim

Horst Gutmann

unread,
Nov 15, 2009, 5:55:03 AM11/15/09
to urlre...@googlegroups.com
Thank you :-)

I think I already got it working. I will try to find some time within
the next couple of days to write a patch for the documentation to also
include an example for this.

Regards, Horst

Razvan C.

unread,
Nov 20, 2009, 3:03:39 AM11/20/09
to UrlRewrite

Hi

Is the patch ready please ? It could help me a lot

Thank you

On Nov 15, 12:55 pm, Horst Gutmann <ho...@zerokspot.com> wrote:
> Thank you :-)
>
> I think I already got it working. I will try to find some time within
> the next couple of days to write a patch for the documentation to also
> include an example for this.
>
> Regards, Horst
>
> On Sun, Nov 15, 2009 at 11:45 AM, Wim De Smet <krom...@gmail.com> wrote:
>
>
>
>
>
> > Hi Horst,
>
> > On Thu, Nov 12, 2009 at 10:38 AM, Horst Gutmann <ho...@zerokspot.com> wrote:
>
> >> Hi :-)
>
> >> Is it possible to use matches from the <from> regex within the <set>
> >> tag? I basically want to store a matching substring into the request
> >> attributes but I couldn't find any documentation on this :-)
>
> > I can't find it in the documentation myself right now, but I think
> > I've done it before. If you can't get it working I'll look if I can
> > find an example for you.
>
> > regards,
> > Wim- Hide quoted text -
>
> - Show quoted text -

Horst Gutmann

unread,
Nov 20, 2009, 4:51:18 PM11/20/09
to urlre...@googlegroups.com
No sorry, I will perhaps get to it Saturday night. But it seems like
you can use $1 etc. within <set>'s value as you would within <to> (at
least in 2.6)

Von meinem iPhone gesendet

Razvan C.

unread,
Nov 26, 2009, 2:56:33 AM11/26/09
to UrlRewrite
ok , thanks for your reply

i will try your tip

cheers
Reply all
Reply to author
Forward
0 new messages