Posted By

inkdeep on 04/12/08


Tagged

regex ruby


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

egoens
sergeizen
webstic


spaces to dashes


 / Published in: Ruby
 

URL: http://snippets.dzone.com/posts/show/4589

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

Report this snippet  

You need to login to post a comment.