Hi List,
 
Using below in route:
 
$var(reg) = "/\+?\d{5}([1-9]\d+)/\1/g";
$var(to_user) = $(rU{re.subst,$var(reg)});
 
With $rU of 12345441234567890 we would expect $var(to_user) to be 441234567890 
(stripping off the first 5 digits) however $var(to_user) returns 
12345441234567890
 
What am I doing wrong?


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to