View Single Post
Old 12-13-2010, 02:43 PM   #1
Fabe
Dylanologist
Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.
 
Fabe's Avatar
 
Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
Another Grep Question

OLD TEXT:
<p>Section 1: Text text text ...</p>

DESIRED RESULT:
<p>Section 1:</p>

<p>Text text text ...</p>

FIND:
<p>Section \d:

REPLACE:
<p>Section ??:</p>\r\r<p>

RETURNS:
<p>Section ??:</p>

<p>Text text text ...</p>

The red question marks represent a number of unsuccessful tries on my part. I wish the replace to use the found data so my numbers increase appropriately. In some instances they go into double digits (e.g. Section 12: )

Can anyone help? Thanks. - Fabe
Fabe is offline   Reply With Quote