View Single Post
Old 11-06-2011, 07:27 AM   #1
virtual_ink
Zealot
virtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheese
 
virtual_ink's Avatar
 
Posts: 107
Karma: 1000
Join Date: Sep 2010
Location: Melbourne, Australia
Device: iPad2, Kindle
GREP search term help

Until I learn GREP, could someone please help put the following into a GREP search for me?

I want to find:
<h2 id="toc_marker-1-1" class="chapter"><span class="bold"><a id="Introduction"/>Introduction</span></h2>

And change it to:
<a id="Introduction"/><h2 id="toc_marker-1-1" class="chapter"><span class="bold">Introduction</span></h2>

NB: The id="toc_marker-1-1" number will change, from 1-1 through to say 10-10. And the chapter title within the "<a id="Introduction"/>Introduction</span></h2>" will also change to whatever the chapter name is.
virtual_ink is offline   Reply With Quote