Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Sep 2004 12:28:59 -0700
From:      Gary Kline <kline@tao.thought.org>
To:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   regex replacement wizard advice needed
Message-ID:  <20040927192859.GA82254@thought.org>

next in thread | raw e-mail | index | archive | help
	Hi Gang,

	I have a document with numbered paragraphs, the numbers 
	to the far left of each paragraph.  Is there a perl
	s/NNN/<B>NNN/</B><BR>/g means I can use from the CL or
	as a script to make this doc more easy (for me) to read.

	The document is formatted like this:

1	Paragraph1.
2	Paragraph2.
...
29	Paragraph29.
...
747	Paragraph747.


	I would like it to be like this:

	<B>1</B><BR>
	Paragraph1.
	<B>2</B><BR>
	Paragraph2.
...
	<B>29</B><BR>
	Paragraph29.
...
	<B>747</B><BR>
	Paragraph747.

	I've used perls subsitiution as a simple command line
	script dozens of times, but this one (yes, I'm using
	HTML) is a bit over my head.  Can anybody clue me in?

	thanks in advance,

	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?20040927192859.GA82254>