View Single Post
Old 09-09-2011, 12:12 AM   #34
DoctorT
Junior Member
DoctorT began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2011
Device: none
Remove ABBYY and Keep Bold Headings

Quote:
Originally Posted by cthrax View Post
I tweaked and tweaked and came out with a regex that get rid of all the abbyy stuff...
You can retain the bold chapter headers (and other bolded text lines) by using the following three Search & Replace items:

1. Search Expression: <b>(.+)</b><br>
Replacement text: @@\1@@

2. Search Expression (from cthrax):
Code:
(<a href="http://www.abbyy.com/buy"><b>[a-zA-Z\.0-9 ]{1,3}</b></a><br>)|<a href="http://www.abbyy.com/buy"><b>Click here to buy</b></a><br>|<a href="http://www.abbyy.com/buy"><b>PDF Transform</b></a><br>|<A.*?</a>|<a href="http://www.abbyy.com/buy">|</a>|</b>|<b>|\.?A ?B ?B ?Y ?Y ?\.c[ o]?m?
Replacement text:

3. Search Expression: @@(.+)@@
Replacement text: <b>\1</b><br>
DoctorT is offline   Reply With Quote