From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <765ef13a653652d5fcef9001ff70f814@quanstro.net> To: 9fans@9fans.net From: erik quanstrom Date: Fri, 24 Oct 2008 08:23:25 -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: 261b5c26-ead4-11e9-9d60-3106f5b1d025 > But any manual page (regexp(6), that of sam) keeps completely silent > about eg. any submatch tracking. > So what's wrong? Can anybody clarify the situation for me or do I > really have to read the codes? well reading the code would be a travesty. it's curious that neither the sam paper nor regexp(6) mentions submatches. maybe i missed them. sed -n 's:.*(KRAK[A-Z]+*) +([a-zA-Z]+).*:\2, \1:gp' [2=] a couple of examples of submatch tracking from our system (i'm not sure about the version of iwhois on sources.) /rc/bin/B /rc/bin/Kill /rc/bin/broke /rc/bin/fax /rc/bin/fshalt /rc/bin/iwhois /rc/bin/juke - erik