This is a discussion on Re: Is this the perfect regex for validating first & last na - RUBY ; Todd Burch wrote: > Todd Burch wrote: >> Perhaps a fairly bold statement, coming from a novice regex'er. >> > > Well, shucks. I missed the hyphenated last name condition. Hillary > Rodham-Clinton would get bounced... (but maybe that's ok? ...
Todd Burch wrote:
> Todd Burch wrote:
>> Perhaps a fairly bold statement, coming from a novice regex'er.
>>
>
> Well, shucks. I missed the hyphenated last name condition. Hillary
> Rodham-Clinton would get bounced... (but maybe that's ok? LOL)
Revised to allow hyphens:
"^(([a-záàâäãåçéèêëíìîïñóòôöõúùûüßÿ])+(\-?|( ?)*))+$"
--
Posted via http://www.ruby-forum.com/.