Hello Everyone

Is it possible to do regex match in opensips configuration file?

Let's say we have 12125789000 and we have regex expression

^(\+1|1)?([2-9][0-9][0-9][2-9][0-9][0-9])([0-9]{4})$

then the result would be

Group #1: 1
Group #2: 212578
Group #3: 9000

Need to take Group #2 value in $var(x).

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

Reply via email to