Skip to content
Advertisement

How to parse paragraph in html using regex

I need to write a regex to parse $$ sign between paragraphs in an HTML page I tried

JavaScript

But I need to apply the same even there are some styles exists in paragraph,

Expected Input:

JavaScript

Expected Output:

JavaScript

please help

Advertisement

Answer

JavaScript

my answer is completely based on your approach, for a better solution, I suggest to parse the html and process.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement