Thread
:
regex question
View Single Post
11-21-2014, 07:14 AM
#
4
kovidgoyal
creator of calibre
Posts: 45,494
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well, this expression will not match if the heading tag is split over multiple lines, for that you need:
(?s)(<h2[^<>]*>)(.+?</h2>)
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS