I have a series of numbers as follows. I want to combine the numbers into 4 groups. Can someone give vim regular expressions?
Input: 1234 56 7890 1234
The output should be: 1234 5678 9012 34
< /div>
twice:
s/ //g
s/\(.\{4\} \)/\1 /g
I have a series of numbers as follows. I want to combine the numbers into 4 groups. Can someone give vim regular expressions?
Input: 1234 56 7890 1234
The output should be: 1234 5678 9012 34
Two Passes:
s/ //g
s/\(.\{4\}\)/\1 /g
< /p>