Hi,
I have to remove the speial symbols from list of names. But I want to
remain the dot(.) in the name itself.
I use ommunity_org_review.name.downcase.strip.squeeze("
").gsub(/['^''&''!']/,
'-').squeeze("-").chomp("-")
or
org_review.company.downcase.strip.squeeze("
").gsub(/[^[:alnum:]]/,'-').squeeze("-").chomp("-")
It is sibstituting with hyphen(-), including dot(.) also. I want to
remain dot. How to do it. please help.
--
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
rubyonrails-talk@...
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en-~----------~----~----~----~------~----~------~--~---