I am trying to use h(1-6) tags. Is there any way if I can use one regular expression or variable to print the tags on the screen.
<h1>Heading</h1>
<h2>Heading</h2>
<h3>Heading</h3>
<h4>Heading</h4>
<h5>Heading</h5>
<h6>Heading</h6>
Instead of using all I want to use one variable or a regular expression, for example:
<h1-6>Heading</h1-6>
<h$>Heading</h$>
Any help is appreciated.