Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Other Programming > BOOK: Beginning Regular Expressions
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 20th, 2006, 02:54 PM
Registered User
 
Join Date: Jul 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with this expression: ^\d{3}$

I'm using this regular expression
^\d{3}$
need to be able to enter combinations such as:
001
002
003
it works for all of then except:
008
009
Anybody know what the problem is?

  #2 (permalink)  
Old October 24th, 2006, 06:44 AM
Registered User
 
Join Date: Oct 2006
Location: Nantes, Loire Atlantique, France.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your expression works perfectly for me, even for 008 & 009. Check again that you are testing "009" and not "009 " or anything else.

Regular expression database (regex.fr)
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataColumn.Expression problem shalan ADO.NET 0 October 4th, 2007 01:53 PM
Regular expression problem keyvanjan ASP.NET 2.0 Basics 0 May 28th, 2007 12:19 PM
problem with x-path expression ashyabhi_hp XSLT 3 February 1st, 2006 05:07 AM
Regular expression problem ghalebro PHP How-To 1 August 24th, 2004 08:10 AM



All times are GMT -4. The time now is 11:20 PM.


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