If I use these command in bash shell:
echo 'abc' | sed 's/b*/1/g'
It would display:
1a1c1
But when I try it in VIM:
(open a document, turn into edit mode and simply type 'abc', and then
turn into command mode)
:s/b*/1/g
it would display:
1a1c
I'm wondering why I get
Thanks guys ^_^
So, shall we get the conclusion that:
What sed does is correct according to POSIX, and VIM or PERL or some others
still need a bit improve on handling zero-length matches?
On Wed, May 4, 2011 at 7:03 AM, Ben Schmidt
mail_ben_schm...@yahoo.com.auwrote:
perl returns '1a11c1',