Hi --

On Thu, 3 Jul 2008, Roc Ho wrote:

> /^\w{3}[0,4-9]{3}\w{3}$/

\w matches any letter or digit, or _ (underscore), so it's not good if
you just want a letter. Also, you've constrained your regex to match
only at the start and end of a line, which wasn't in the original
spec.


David

-- 
Rails training from David A. Black and Ruby Power and Light:
   Intro to Ruby on Rails  July 21-24      Edison, NJ
   Advancing With Rails    August 18-21    Edison, NJ
See http://www.rubypal.com for details and updates!