Quote:
Originally Posted by DerSchwarzePrinz
Same effect, only one and three digit numbers are removed. Any ideas?
If I use "\d{1,3}" all the page numbers are removed, but naturally the hyphens stay behind.
If I use "- \d{1,3} -" all page numbers including hyphens are removed without the page numbers that have two digits.
|
Hm... It could be an extra space somewhere between the -s. As long as there are no spaces between the numbers themselves this should work:
Quote:
Originally Posted by Spit
I sorted it another way, thanks for the help guys.
|
Great. As you can tell the header removal is very rough at the moment. Eventually I'm going to write a GUI tool to help. Also, eventually I want to have it auto detect the headers instead of having to use a regex. But both of those are toward the bottom of my todo list.