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,684
Karma: 4392001
Join Date: Dec 2010
Device: Kindle 3
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