I have the next string:
## This is h2
Paragraph text
### This is h3
#### This is h4
and I want this:
<h2>This is h2</h2>
Paragraph text
<h3>This is h2</h3>
<h4>This is h2</h4>
How could I do it?
With Regex is easy to find the sentence, but I don't know how to replace it with the extracting sentence and from multiple matchs in the string.
##.*
Any help?