Am 04.05.2011 01:03, schrieb Ben Schmidt:
perl returns '1a11c1', BTW!

Mmm. It's a bit debatable whether the second 1 in the 11 represents an
overlapping match or not. That's the problem with zero-length matches
that aren't solidly anchored; there are a lot of funny edge cases.

Ben.

Has it been mentioned?

    :echo substitute('abc', 'b*', '1', 'g')
    1a11c1

Just like Perl!

--
Andy

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to