From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Wed, 12 May 2004 13:22:04 +0000 From: Matthias Teege To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] regexp not greedy enough Topicbox-Message-UUID: 77b285ac-eacd-11e9-9e20-41e7f4b1d025 as you know trying to use sam for editing. ;-) I have another problem with a regexp. I comment out some text with s:(.|\n)*:/*\n&\n*/: This works but now I try to delete all comments. First I try to select the region with /\/\*[^\/]*. But the regexp stops at the first '\n'. Why? How do I get the whole region? Matthias