The dot is probably not the issue here as it appears as part of a character 
sequence.

If you don't want to match with any '_' then replace the \w since it matches 
"alphanumeric + '_'".


It's not clear to me what your intention is for the second set of square 
braces, but it looks like you're trying to get grouping. You probably want 
parentheses instead.


Try something like this:

/^[0-9a-zA-Z.]+([0-9a-zA-Z]\s)*$/

-Donald

Samer Abukhait wrote:
> The dot (after the 9) means any character; if you remove it, it's
> gonna only accept a-zA-Z0-9
> >
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to