vim regular expression
Posted
by chappar
on Stack Overflow
See other posts from Stack Overflow
or by chappar
Published on 2009-01-14T11:32:09Z
Indexed on
2010/05/31
11:03 UTC
Read the original article
Hit count: 345
I have following text in a file
23456789
When i tried to replace the above text using command
1,$s/\(\d\)\(\d\d\d\)\(\d\d\)*\>/\3\g
I am getting 89. Should't it be 6789? Can anyone tell me why it is 89.
© Stack Overflow or respective owner