regex - Find & Replace digit by digit and space in Sublime Text -
i have lot of digits , want add together spaces in between them, so:
0123456789 --> 0 1 2 3 4 5 6 7 8 9
i'm trying using search , replace function in sublime text. i've tried far using \s find characters (there digits doesn't matter) , \1\s replace them. however, deletes digits , replaces them s. know how this?
press ctrl + h open search , replace dialog (make sure click .* @ left enable regular look mode):
(\d)(?!$) replace with: $1[space] the regular look (\d)(?!$) matches digits except 1 @ end of line.
here's how looks like:
regex replace find sublimetext3 digit
No comments:
Post a Comment