Wrox Programmer Forums
| 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 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
  #1 (permalink)  
Old September 7th, 2010, 09: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, 10:14 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
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, 09: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, 07: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


Similar Threads
Thread Thread Starter Forum Replies Last Post
simple question petergoodman XSLT 8 July 18th, 2008 07: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 09:43 AM





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