View Single Post
Old 08-17-2009, 10:10 AM   #14
DerSchwarzePrinz
Enthusiast
DerSchwarzePrinz began at the beginning.
 
Posts: 25
Karma: 16
Join Date: Aug 2009
Device: Pocketbook 360, Sony PRS-T1
Quote:
Originally Posted by user_none View Post
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:

Code:
"-\s*\d{1,3}\s*-"
Nope, doesn't work. I tried this:

"-\s*\d.+-"

That seems to work ...

What RE could I use for "normal" page numbers e. g. 1, 2, 3 ...?
I want to avoid removing numbers from the document, so I need something like "remove any number from one to three digits on a single line". Could you please give me a hint?
DerSchwarzePrinz is offline   Reply With Quote