[Serusers] HF replace

Mihaly Zachar zmihaly at madein.hu
Wed May 4 14:59:26 CEST 2005


Hi everybody, I'm a newbie here...

I'd like to change the "From:" HF ...

here is my input:

From: User Name <sip:aaa123456\@1.1.1.1>;tag=426f34e337ec2855o

my regexp would be:

s/^From:(.*)aaa(\d{6})(.*)/From:$1$2$3/


so, I would like to remove the "aaa" prefix from the number:

the result should be:

From: User Name <sip:123456 at 1.1.1.1>;tag=426f34e337ec2855o


How can I use textops' replace() or subst_user() ??

Thanks,
Misi




More information about the sr-users mailing list