Consider the following sample text: foo bar baz qux quux
The purpose is to merge each pair of words, so that the text becomes: foobar bazqux quux The following command works fine: x/.+\n.+/ x/\n/ d But the following one does not: x/.*\n.*/ x/\n/ d It results in all \n being deleted. I suppose it's because .* matches an empty string in this case. But it really shouldn't. Sam's regular expressions are leftmost-longest. And there's seemingly nothing that must stop both .* from extending. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tabb641f45805a1fc-M3a459815536caaee8e5401c5 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription