Hi Sam,
what hdr you need to extract the uri from? maybe there are pseudo
variables available and you do not need to use regexp.
For example, you have $di for diversion URI. See:
pseudovariables:devel#diversion_header_uri
regards,
bogdan
Sam Lee wrote:
Hey Greg,
The regex doesn't seem to work for me.
Any ideas ?
Regards,
Sam
-----Original Message-----
From: Greg Fausak [mailto:lgfausak@gmail.com] Sent: Wednesday,
January 31, 2007 11:42 AM
To: Sam Lee
Cc: Bogdan-Andrei Iancu; users(a)openser.org
Subject: Re: [Users] Hijack 'Move Temporarily'
On Jan 30, 2007, at 8:34 PM, Sam Lee wrote:
Hey guys,
I'm not a particular big fan of regular expressions.. But need to
use it now.
If I have a string eg <abcde> fghij
/.*<(.*)>.*/\1/
I can never remember the variants. Sometimes you need to escape the
parens, like:
/.*<\(.*\)>.*/\1/
Sometimes you use $1 instead of \1, like:
/.*<(.*)>.*/$1/
-g
How / what is the regex to extract strings within
the bracket
(everything else not needed). I just need to extract stuff from
within
> the brackets.
>
> Thanks a million !
>
> Regards,
> Sam
>