From: Wayne Vucenic Date: 2008-06-21T05:00:51+09:00 Subject: Re: RegEx Hi David, > And, in this case, the characters ( and ) :-) Great observation! I hope to see you at RubyConf this year! Best regards, Wayne On Fri, Jun 20, 2008 at 12:43 PM, David A. Black wrote: > Hi -- > > On Sat, 21 Jun 2008, prubel@bbn.com wrote: > >> >> Hi Justin, >> >> >> Justin To writes: >> > Awesome, thanks for the help... I have one other regex question though, >> > pertaining to the same problem I'm trying to do >> > >> > /^(\d+\.[(7)(11)])$/ >> > >> > That's my regex... it's suppose to match something like: >> > >> > 213823.7 >> > or >> > 848494223.11 >> >> One interesting thing to note is that it will match 7.1 but not 7.11. >> >> What you need is some alteration, you want either 7 or 11. What you >> have is 'choose from the set,' []. Where the set ends up containing >> the characters 7 and 1. > > And, in this case, the characters ( and ) :-) > > > David > > -- > Rails training from David A. Black and Ruby Power and Light: > ADVANCING WITH RAILS June 16-19 Berlin > ADVANCING WITH RAILS July 21-24 Edison, NJ > See http://www.rubypal.com for details and updates! > >