From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2639078ba1a669e2ca3eeb93d1ae1372@mteege.de> 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] sam regexp coverage Date: Sun, 9 May 2004 16:28:17 +0000 Topicbox-Message-UUID: 750647b2-eacd-11e9-9e20-41e7f4b1d025 I have another small problem with sam and regexp. I have a text with a lot of constructs like this one: Hello world http://my.domain:"This is a link" more text and http://another.domain:"This is another link" follows more text Now I try to translate the link in html syntax with ,x/(http.*)\:\".*\" s/(http.*):\"(.*\n*.*)\"/\2<\/a>/ The problem is, that the regexp matches both "links" not only the first ore the second one. I've tried to find a better one but its hopeless. ;-) Thanks for any hint Matthias