[Users] textops regular expression matching = subst to replace from field

Neill Wilkinson neill.wilkinson at btinternet.com
Wed Jan 18 12:16:15 CET 2006


Hi all,

Looking to get a way to replace the From field in a REGISTER message to the
forward on to another Registrar, as a third party registration

I've tried something along the lines of:

If (subs("/(^From:)([ ]*)/\1 sip:newaddress at new.server/I"))
	log(1,"Match!\n");
else
	log(1,"No match\n");

I basically need help with the Regex syntax and a good means of checking -
is egrep or sed a good means of testing?

Thanks.....

Neill...;o)



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0603-2, 17/01/2006
Tested on: 1/18/2006 11:16:18
avast! - copyright (c) 1988-2004 ALWIL Software.
http://www.avast.com







More information about the Users mailing list