On Dec 22, 11:42 am, NAYAK <[email protected]> wrote: > Hi, > > You can use gsub(/[^0-9a-zA-Z,]/, '') to replace only non numbers, alphabets > and ,
That's not reliable if you're outside an English environment. :alnum: is a better solution. > > Regards, > NAYAK Best, -- Marnen Laibow-Koser [email protected] http://www.marnen.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

