From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 29 Feb 2008 23:53:12 +0800 From: "Hongzheng Wang" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] ^ and $ in structural expressions In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20080229140847.GA20853@dinah> Topicbox-Message-UUID: 68daa18a-ead3-11e9-9d60-3106f5b1d025 And it might also make regexp too complicated. On Fri, Feb 29, 2008 at 11:48 PM, roger peppe wrote: > > Lately, I've been running into situations where it would > > be convenient to have them match what they should, i.e., > > the beginning and end of the selected data. > > i've often wanted something similar, but i'm not sure you can > re-use ^ and $, as for example ,x/;$/d would stop working. > > i thought perhaps =AB and =BB would do the job, but that's > not considered a good idea. > > here are some relevant articles from the archives: > > http://9fans.net/archive/2003/10/241 > http://9fans.net/archive/2003/10/245 > http://9fans.net/archive/2003/10/340 > http://9fans.net/archive/2003/10/341 > http://9fans.net/archive/2003/10/343 > > basically, it might be useful, but there's no way to fit it into the syn= tax. > --=20 HZ