I've found some great expressions on this site:

http://www.regexlib.com/Default.aspx

They probably have what you're looking for.

-----Original Message-----
From: William M Conlon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 08, 2006 4:37 PM
To: Witango-Talk
Subject: Witango-Talk: Telephone number regex parser

Thought I would ask here, in case someone has already done this.  I'm looking 
for a
telephone regex for NANP (North American Numbering
Plan) to convert BigInt to/from human-readable format, eg.,

800-325-3535 <==> 8003253535

On output to user I plan like to present the number using Witango
FORMAT="TEL:US-hyphen".

User input validation needs to strip any non-numeric character, and then apply
NXXNXXXXXX constraints (N = [2-9], X=[0-9])

Bill
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to