Thread: Regex examples
View Single Post
Old 03-05-2013, 11:29 AM   #197
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,862
Karma: 4630359
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by ReaderRabbit View Post
What would be the best way to find and eliminate page numbers such as:

He glanced 190</p>

<p class="calibre1">up at the big clock
Assuming that each page number is preceded by a space, the following quick & dirty regex should work:

Code:
\d+</p>\s+<p class=".*?">
(Replace with nothing.)
Doitsu is offline   Reply With Quote