View Single Post
Old 06-23-2010, 09:46 AM   #13
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by st_albert View Post
Yes, that is what I'm saying exactly. You need to use a "regular expression" search which would look something like this in sigil:

Find what: <p class="h1">(.+)</p>

...
Personally, for added safety (especially if your forget to check the minimal matching!!) I would use something like:

Find what: <p class="h1">([^<]+)</p>

The only difference from a users point of view is that you are guaranteed that the regex will stop at the first < it comes across.

.+ means search for 1 or more character, no matter what it is.

[^<]+ means search for 1 or more of any character that is not '<'

You would use the same replace term in either case - <h1>\1</h1>
sherman is offline   Reply With Quote