Timothy Hunter wrote: > J. mp wrote: >>>> user.name ->valid >> >> >> >> > > /\A[[:alpha:]][-_.[:alpha:]]{3,28}[[:alpha:]]\z/ > >> basically I want allow the same pattern allowed for emails but before >> the @ char :) >> >> > The above regexp does not do this. Certainly you can have numbers in > your email address, for example. Basically anything is allowed before > the @. Google "regular expression email address" for extensive > discussions about this. It works well. Thanks a lot -- Posted via http://www.ruby-forum.com/.