Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 Display Modes
  #1 (permalink)  
Old September 7th, 2010, 10:20 PM
Authorized User
 
Join Date: Aug 2010
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cade_Feng
Default Simple question?

Hi,Everybody.
I met a little question.I'm try,but I don't know how to figure it out.

Question describing
[0-9]?[0-9]?[0-9]?

Could I make them simple?
Just like [0-9] equal \d
__________________
Wana be a .net developer.
Sincere yours
Cade_Feng
  #2 (permalink)  
Old September 7th, 2010, 11:14 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,652
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Why didn't you simply TRY it instead of waiting for an answer??

Yes.

Or you could do
Code:
     \d{0,3}
  #3 (permalink)  
Old September 8th, 2010, 10:01 PM
Authorized User
 
Join Date: Aug 2010
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cade_Feng
Default

Thanks,I totally forgot it. Thanks for your reminding.
__________________
Wana be a .net developer.
Sincere yours
Cade_Feng
  #4 (permalink)  
Old October 18th, 2012, 08:14 PM
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by Cade_Feng View Post
Hi,Everybody.
I met a little question.I'm try,but I don't know how to figure it out.

Question describing
[0-9]?[0-9]?[0-9]?

Could I make them simple?
Just like [0-9] equal \d
3 optional digits
__________________
--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
 


Thread Tools
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
simple question petergoodman XSLT 8 July 18th, 2008 08:57 AM
very simple question rogdawg Visual Studio 2005 2 January 14th, 2008 04:03 PM
Simple Question JEHalm BOOK: Beginning Access VBA 0 December 29th, 2005 10:42 AM
Simple Question dinosaur_uk VB.NET 2002/2003 Basics 1 September 10th, 2004 10:43 AM



All times are GMT -4. The time now is 04:19 AM.


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