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.
|