[Users] Hijack 'Move Temporarily'

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Feb 2 10:01:33 CET 2007


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:lgfausak at gmail.com] 
>Sent: Wednesday, January 31, 2007 11:42 AM
>To: Sam Lee
>Cc: Bogdan-Andrei Iancu; users at 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
>>    
>>





More information about the Users mailing list