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
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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 3rd, 2011, 12:46 PM
Authorized User
Points: 225, Level: 4
Points: 225, Level: 4 Points: 225, Level: 4 Points: 225, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2006
Location: , , Greece.
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy HELP WITH A REGULAR EXPRESSION

Hi all, please I need help.

I 'd like to find the regular expression with this data:

"A name includes the first five latin letters (abcde) and the underscore (_), which can be repeated many times. Each name can also includes the (.) only once.
The name must be ended with (;).

Which is the regular expression?

thanx a lot
Reply With Quote
  #2 (permalink)  
Old June 6th, 2011, 08:14 AM
Authorized User
 
Join Date: Mar 2011
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Code:
^([1-6][0-9]{0,3})[- ]([1-6][0-9]{0,3}$)
Reply With Quote
  #3 (permalink)  
Old June 6th, 2011, 08:15 AM
Authorized User
 
Join Date: Mar 2011
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Default

sorry wrong place to post
Reply With Quote
  #4 (permalink)  
Old October 18th, 2012, 07:11 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 Vision G View Post
Hi all, please I need help.

I 'd like to find the regular expression with this data:

"A name includes the first five latin letters (abcde) and the underscore (_), which can be repeated many times. Each name can also includes the (.) only once.
The name must be ended with (;).

Which is the regular expression?

thanx a lot
In perl:
Code:
/[a-e_]+;/
__________________
--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
Reply With Quote
Reply


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
Regular Expression Help Please rstelma ASP.NET 1.0 and 1.1 Professional 0 January 2nd, 2008 06:01 PM
Regular Expression in C++ praveenholal C++ Programming 1 March 4th, 2007 12:18 AM
Regular Expression NewToXSL ASP.NET 1.0 and 1.1 Basics 1 June 13th, 2006 02:52 PM
regular expression vohra_vikas2004 ADO.NET 3 November 18th, 2004 08:59 PM
Regular Expression Help Hadware .NET Web Services 3 November 4th, 2003 09:51 AM



All times are GMT -4. The time now is 02:16 PM.


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