Posted By

inkdeep on 04/12/08


Tagged

regex ruby


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

webstic


remove non-word characters


 / Published in: Ruby
 

  1. s.gsub!(/\W+/, '')

Report this snippet  

You need to login to post a comment.