Aisha Srivastava

Aisha Srivastava

  • NA
  • 230
  • 27.3k

regex

Apr 19 2015 3:34 AM

So essentially, I do not want to strip any opening P tag with any attributes and I don't want to strip anything in the string. and closing too...

Test case/

<p style='color: green;'>What a fine day it is</p>

Desired Result/

<p ******Can BE  ANYTHING*****>What a fine day it is</p> 
Regex for this...we have to keep all attribute

 
<p style='color: green;'>What a fine day it is</p> 

Answers (1)