[Serusers] HF replace
Klaus Darilion
klaus.mailinglists at pernau.at
Wed May 4 17:09:18 CEST 2005
Be warned - modifying From: or To: is not allowed.
I use "subst" from textops module.
regards,
klaus
klaus
Mihaly Zachar wrote:
> 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
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
More information about the sr-users
mailing list