Hola,
What would a valid regexp in Asterisk be to identify a NANP number, i.e.,
NXXNXX?
Sincerely,
Brent A. Torrenga
Torrenga Engineering, Inc.
907 Ridge Road
Munster, Indiana 46321-1771
tel:+1 219 836 8918 x325
fax:+1 219 836 1138
email:[EMAIL PROTECTED]
web:www.torrenga.com
This would let you include/ignore a leading 1
1{0,1}[2-9]{2}[0-9]{8}
Brent Torrenga wrote:
Hola,
What would a valid regexp in Asterisk be to identify a NANP number, i.e.,
NXXNXX?
Sincerely,
Brent A. Torrenga
Torrenga Engineering, Inc.
907 Ridge Road
Munster, Indiana
Hi Again Brent -
What would a valid regexp in Asterisk be to identify a NANP number, i.e.,
NXXNXX?
I think you've got it right already. What do you need to do?
If you wanted to get more specific and identify ONLY NANP, you may
have to break it out into more than just one rule:
Hi Brent -
What would a valid regexp in Asterisk be to identify a NANP number, i.e.,
NXXNXX?
I think you've got it right already. What do you need to do?
- Noah
___
--Bandwidth and Colocation Provided by http://www.api-digital.com--
But those are not REGEX expressions, those are asterisk dialplan
pattern-matching expressions. great for the X in:
exten = _X.,1,blah
but not for use with REGEX() function.
I think it would be close to what Michael said, but like this:
1{0,1}[2-9][0-9]{2}[2-9][0-9]{6}
Michael, your
My mistake...you're correct...should have tested it.
Mojo with Horan Company, LLC wrote:
But those are not REGEX expressions, those are asterisk dialplan
pattern-matching expressions. great for the X in:
exten = _X.,1,blah
but not for use with REGEX() function.
I think it would be