Quote:
Originally Posted by oddsoxx
How can I figure out what to put in that line to get it to remove the headers and footers? Is it different for every book?
|
Yes, it's probably going to need to be tweaked on a per-book basis.
The originals:
Header:
Code:
(?i)(?<=<hr>)((\s*<a name=\d+></a>((<img.+?>)*<br>\s*)?\d+<br>\s*.*?\s*)|(\s*<a name=\d+></a>((<img.+?>)*<br>\s*)?.*?<br>\s*\d+))(?=<br>)
Footer:
Code:
(?i)(?<=<hr>)((\s*<a name=\d+></a>((<img.+?>)*<br>\s*)?\d+<br>\s*.*?\s*)|(\s*<a name=\d+></a>((<img.+?>)*<br>\s*)?.*?<br>\s*\d+))(?=<br>)
If you want to learn regular expressions... may $deity have mercy on your soul.