Regular expressions for combining numbers

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>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5480 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.