From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6988bd18a7bfb3d7def95c11e4dd9bd9@quanstro.net> To: 9fans@9fans.net From: erik quanstrom Date: Thu, 23 Oct 2008 15:05:33 -0400 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] non greedy regular expressions Topicbox-Message-UUID: 25ff3c94-ead4-11e9-9d60-3106f5b1d025 > regexp(6) seems to know only greedy regular expressions. So does > probably awk, sed, grep, ..., since these are based on that regexp. > My question is what to do if one needs non-greedy regexps. russ has a great writeup on this. http://swtch.com/~rsc/regexp/ i think it covers all your questions. - erik