Quote:
Originally Posted by st_albert
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>