Posted By

lagrangeapex on 12/12/07


Tagged

regex whitespace RegularExpression


Versions (?)

Who likes this?

8 people have marked this snippet as a favorite

basicmagic
wbowers
mattkenefick
mikegreen
bsteadman
benrudolph
Tyster
banjomamo


Convert whitespace to underscores


 / Published in: Regular Expression
 

I use in textmate / e to convert whitespace to underscores.

  1. Find
  2. (id=")(\w+)(\s)
  3. Replace
  4. $1$2_

Report this snippet  

You need to login to post a comment.