[Serusers] Re: help with textops
Tobias Lindgren
tobias.lindgren at ip-only.se
Tue Mar 14 19:10:19 CET 2006
Steve,
I think I got this line working, but I'm sorry to say that I'm really
not sure since I just used it for testing and that was a couple of
months ago..
But here goes:
subst('/From:(.*)sip:([0-9]+)@(.*)>(.*)$/From:\1sip:\2 at mynewdomain.com>\4/i');
Br,
/Tobias
Steve Blair said the following on 2006-03-14 19:02:
> I've pretty much exhausted all combinations or re I can think of. I've
> tried both the replace and subst commands without success.I've placed
> these command instead of the if-then construct:
> if (search("^From.*sip:(.*)@myschool.edu")) { ...} along with some xlog
> statements and these log statements are being executed. Anyone have any
> thoughts on how I can replace the domain name in the From URI ?
>
> Thanks,Steve
>
> Steve Blair wrote:
>
>>
>> I'd like to replace just the domain name in the From field with a
>> different value. I was looking at using either replace or subst but I
>> cannot seem to get the regular expression right. Does anyone have a
>> working example?
>>
>> Thanks,Steve
>>
>
More information about the sr-users
mailing list