Thread: I need help!!!
View Single Post
Old 11-02-2010, 02:14 PM   #1
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
I need help!!!

I'm at the verge of gibbering. Since all of the really smart folks hang out here, I know someone has the answer. The book I'm working on has 72 blocks similar the the following:

Code:
<div class="stanza">
  <p>“‘Tell me, my old friend, tell me why</p>
  <p>You sit and softly laugh by yourself.’</p>
  <p>‘It is because I am repeating to myself,</p>
  <p>Write! write</p>
  <p>Of the valiant strength,</p>
  <p>The calm, brave bearing</p>
  <p>Of the sons of the sea.’”</p>
</div>
I need to get rid of the <p>...</p> tags and replace with the following:

Code:
<div class="stanza">
  “‘Tell me, my old friend, tell me why<br />
  You sit and softly laugh by yourself.’<br />
  ‘It is because I am repeating to myself,<br />
  Write! write<br />
  Of the valiant strength,<br />
  The calm, brave bearing<br />
  Of the sons of the sea.’”<br />
</div>
I've been through every manual and web reference I can find and nothing I've tried has worked. Nothing comes close to finding a series of items between two markers. I know that anything can be done with regex's if you are only smart enough or can frame the right question to google.
crutledge is offline   Reply With Quote