View Single Post
Old 12-30-2014, 08:55 PM   #16
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,450
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The way those functions work is that they uppercase the contents of any groups in the find expression. You have specified a group that matches H1. You need to specify a group that matches the actual content, like this.

<[Hh][1-6]>(.+?)</[Hh][1-6]>

If you want a case changing function that ignores text in tag definitions in the matched text, then you will need to write one for yourself. The builtin functions wont do that, because, they are for general purpose use, not specifically for changing text between tags.
kovidgoyal is offline   Reply With Quote