2012年10月5日星期五

replace consecutive multiple spaces with other character


this will replace 2 or more spaces
s/ \{2,}/ /g
or you could add an extra space before the \+ to your version
s/  \+/ /g

没有评论:

发表评论