I am currently working on some server side code to parse HTML. I have following html string:
<div class="rte-style-maintainer rte-pre-wrap" style="white-space: pre-wrap; font-size: small; >This is a test for link {<a spellcheck="false" destination="rte:bind" data-destination="rte:bind">ABCD 156782053 </a>}</div>
And want to replace the content inside the bracket {} with
<a href="ABCD 156782053">ABCD 156782053 </a>
I am new to the regular expression. How can I get the "ABCD 156782053" from the bracket using regular expression? And replace the content inside bracket with new value?
Thanks