Bogdan,
We're also trying to get at the top diversion header.
We are trying to reference the diversion header in
C code. But, the header doesn't seem like it is being
parsed. Is there something special to do to get the header
to parse?
-g
On Feb 2, 2007, at 3:01 AM, Bogdan-Andrei Iancu wrote:
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:
http://www.openser.org/dokuwiki/doku.php/
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:[EMAIL PROTECTED] Sent: Wednesday,
January 31, 2007 11:42 AM
To: Sam Lee
Cc: Bogdan-Andrei Iancu; [email protected]
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
_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users