I am working on processing HTML that has unique subheadings.
In their current state the subheadings are formatted as such:
<p>Example Text.</p>
What makes these subheadings unique from the rest of the paragraph tags is the period(.) that proceeds the ending tag. I would like to convert the code above to make it look like what's shown below.
<subheading>Example Text</subheading>
Take note the period that proceeded the ending paragraph tag was also removed.
Is this something that is do-able using Regex and can you please provide me an example?
Many thanks!