Date: Tue, 28 Sep 2004 10:40:57 -0700 From: Gary Kline <kline@tao.thought.org> To: Atle Veka <atlev@flyingcroc.net> Cc: freebsd-questions@freebsd.org Subject: Re: regex replacement wizard advice needed Message-ID: <20040928174057.GB2525@thought.org> In-Reply-To: <20040927171855.J72052@fincher.users.accretive-networks.net> References: <20040927235915.082C416A4E5@hub.freebsd.org> <20040927171855.J72052@fincher.users.accretive-networks.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 27, 2004 at 05:23:03PM -0700, Atle Veka wrote: > > How about something like (assuming space between numbering and paragraph > is a tab): > > perl -pi -e 's,^(\d)\t,<B>$1</B><BR>,' <filename> > > > Atle Right. I could've come up with something like this without digging out my REGEX book. But Tom Embt's example was right on the money. (FWIW, I've learned to never try to explain to non-nerds what a regular expression is. They give me strange looks!) thanks, gary -- Gary Kline kline@thought.org www.thought.org Public service Unix
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040928174057.GB2525>