I have this html tag (from string):
<meta name="description" content="I love my mother" but I love my sister" more than I can say"/>
As you can see, I have 4 double quote (apostrophe) in the content section. Should be only 2 double quote: one at the beginning content="
and one at the end "/>
I must find all tags that contains other double quote except those 2 in the content section, and delete them:
Output should be:
<meta name="description" content="I love my mother but I love my sister more than I can say"/>
I made a Regex, but not too good. Maybe you can help me:
FIND: (?-s)(<meta name="description" content=")(*?\K.*"(?s))"/>
REPLACE BY: \1\2