Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > BOOK: Beginning Regular Expressions
|
BOOK: Beginning Regular Expressions
This is the forum to discuss the Wrox book Beginning Regular Expressions by Andrew Watt; ISBN: 9780764574894
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Regular Expressions section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2007, 03:08 AM
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Regular expression for phone numbers [both U.S. an

If no + then assume U.S. format and store xxx-xxx-xxxx as the default format.
Allow (xxx) xxx-xxxx or xxx-xxx-xxxx or xxx.xxx.xxxx or (xxx) xxx xxxx or xxx xxx xxxx

If +sign then assume International phone and store as +xx-xx-xxx-xxx (Country + AreaCode + Phone)

Allow
+[2]-[2-4]-[3-4]-[3-4] i.e +[2igits]-[2 to 4 digits]-[3 to 4 digits]-[3 to 4 digits]
+[2] [2-4] [3-4] [3-4] i.e.+[2igits] [2 to 4 digits] [3 to 4 digits] [3 to 4 digits]






Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Blank Spaces in Phone Numbers Brendan Bartley Access 1 April 12th, 2007 11:42 AM
trying to make a custom label for phone numbers... thenoseknows ASP.NET 2.0 Professional 2 August 22nd, 2006 06:07 PM
formatting phone numbers xslt_student XSLT 0 August 7th, 2006 04:10 PM
regular expression with numbers and blanks burdickdave ASP.NET 1.0 and 1.1 Professional 4 March 5th, 2004 09:54 AM
U.S versus International Phone Numbers bph Access 6 February 19th, 2004 05:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.