Thread
:
RegEx Function: Title Case
View Single Post
12-28-2014, 10:55 PM
#
11
kovidgoyal
creator of calibre
Posts: 45,418
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I tried the following expression and it works both for heading tags with <br> inside and without br inside.
Code:
<[Hh][1-6][^>]*>([^<>]*)(?:<[^<>]+>){0,1}([^<>]*)</[hH][1-6]>
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS