View Single Post
Old 01-28-2019, 12:44 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,143
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by patrik View Post
If I may...

I want to remove a beginning div.


It's like this:

<body>
<div lang="en">

(bunch of stuff)

</div>
</body>

I thought something like <div lang="en">.*</div> would match.
You might want to make sure that you match the last </div> in the file. So perhaps <body> <div lang="en">(.*?)</div> </body>
and replace with
<body>\1</body>

As usual, make sure you have a backup before making changes.
DNSB is offline   Reply With Quote