Let's say I wanted to replace the string 'Sh' with the letter 'F' throughout a book:
Code:
<p class="chaptitle">The Shop</p>
<p class="indent">This should show the hashes.</p>
End result
Code:
<p class="chaptitle">The Fop</p>
<p class="indent">This fould fow the hafes.</p>
In order for it not to mess up any code, I assume I need to isolate it to within the <p> tags?
Code:
<p class="[\d\D]*?">[\d\D]*?</p>
This above matches all paragraphs regardless of class. Is this correct so far?
How would I then match all instances of 'Sh' within the <p> tags and what would the replacement text expression look like?
Thanks