View Single Post
Old 04-12-2011, 02:57 PM   #8
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Tharadalf View Post
Hello everyone,
I am also trying to remove page numbers, which in text look like this:
Code:
3 <br>
So I came up with this regexp:
Code:
^\d+ <br>$
but it is not working for me. What am I doing wrong?
1) use (?mu)before ^ to enable multple line matching. otherwise ^ matches the start of the string.

2) Use \s instead of a space to match new line characters. Also add + to match multiple spaces.
user_none is offline   Reply With Quote