From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 23 Oct 2008 20:58:20 +0200 From: "Rudolf Sykora" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [9fans] non greedy regular expressions Topicbox-Message-UUID: 25fb8590-ead4-11e9-9d60-3106f5b1d025 Hello 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. Also, is there anything like submatch extraction, counted repetition of regexp (like {3,5}), (lookahead) assertions in plan9? Thanks Ruda