regex replacement wizard advice needed

Gary Kline kline at tao.thought.org
Tue Sep 28 10:41:04 PDT 2004


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 at thought.org   www.thought.org     Public service Unix



More information about the freebsd-questions mailing list