[Serusers] replace in textops...doesnt seem to replace---SOLVED

Iqbal iqbal at gigo.co.uk
Wed Mar 16 20:20:54 CET 2005


Hi

Have no idea why the replace below di not replace, nehow trawling through
the code came across (which is also in the docs...if I read)

subst_user('/^0/55/');

and voila it works

Iqbal

On 3/16/2005, "Iqbal" <iqbal at gigo.co.uk> wrote:

>
>Hi
>
>Obvioulsy my day for asking dumb question, but I have the following code,
>and am trying to do a simple replace, but in debug..seems like nuthing
>happens
>
>if (uri=~"^sip:0.*@.*") {
>                replace("0","43");
>}
>{...}
>
>but no replace, now it should replace the first 0 with 43
>
>any ideas
>Iqbal
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>




More information about the sr-users mailing list