I need a regular expression to remove all the links inside the specific <body> tag.
Ex Input:
<body>
<a href=“url”>Link text</a>
<a href=“url”>Link text</a>
</body>
<body2>
<a href=“url”>Link text</a>
<a href=“url”>Link text</a>
</body2>
Ex Output:
<body>
Link 1 text
Link 2 text
</body>
<body2>
<a href=“url”>Link text</a>
<a href=“url”>Link text</a>
</body2>
Pls provide your inputs in this.