From: Daniel Lucraft Date: 2007-01-10T23:58:17+09:00 Subject: Re: Is equivalent to [A-Za-z0-9]? > /^[[:alnum:]][A-Za-z0-9\-]*[[:alnum:]]$/ Incidentally, the dash doesn't need to be escaped in the character class if you put it first: /^[[:alnum:]][-A-Za-z0-9]*[[:alnum:]]$/ best, Dan -- Posted via http://www.ruby-forum.com/.