Conrad Taylor wrote: [...] > Sijo, what is the correct format for a name? In any case, your regular > expression > says that the format for the name should be a comma.
No, it says that the name should *contain* a comma (although your brackets are superfluous). > Thus, you might > want > to > rework your regular expression so that it supports the correct naming > format. Yes indeed. If you are requiring names not to have commas, perhaps you want /^[^,]*$/ or something. However, it may be better from a usability perspective to not have this validation -- instead, just remove the commas from the user's input. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

