Re: [SR-Users] how to remove non-digits using dp_translate

2014-07-18 Thread Daniel-Constantin Mierla
ilto:mico...@gmail.com>>, "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.sip-router.org>> Subject: Re: [SR-Users] how to remove non-digits using dp_translate I don't know how to apply the global flag in Kamailio. Can you give me an example? -H From

Re: [SR-Users] how to remove non-digits using dp_translate

2014-07-16 Thread Henry Fernandes
Can anyone show me how to use the regexp global flag using dp_translate? -H From: Henry Fernandes Reply-To: "Kamailio (SER) - Users Mailing List" Date: Friday, 11 July, 2014 4:18 PM To: , "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] how to rem

Re: [SR-Users] how to remove non-digits using dp_translate

2014-07-11 Thread Henry Fernandes
I don't know how to apply the global flag in Kamailio. Can you give me an example? -H From: Daniel-Constantin Mierla Reply-To: , "Kamailio (SER) - Users Mailing List" Date: Thursday, 3 July, 2014 1:47 AM To: "Kamailio (SER) - Users Mailing List" Subject: Re: [SR

Re: [SR-Users] how to remove non-digits using dp_translate

2014-07-03 Thread Daniel-Constantin Mierla
Hello, you have to replace [^0-9] with empty, using the global flag. Cheers, Daniel On 02/07/14 23:11, Henry Fernandes wrote: I'd like to use the dialplan module to remove all non-digits from a string. For example, "1-306-555-1234" becomes "13065551234" and "(306) 555-1234" becomes "30655512

[SR-Users] how to remove non-digits using dp_translate

2014-07-02 Thread Henry Fernandes
I'd like to use the dialplan module to remove all non-digits from a string. For example, "1-306-555-1234" becomes "13065551234" and "(306) 555-1234" becomes "3065551234". Unfortunately, I can't figure out the regular expressions for subst_exp and repl_exp. I can easily replace one instance of a n