I need a little help to write a regular expression which can find a span tag if it has inline style in it.
So far I have got ]style=[\"'][^\"'][\"']*|/)?> which does find a span tag with inline style.
It can detect the span tag only when there is inline style in it but not the matching ending span tag
Please see the screenshot which shows what all it detects in a sample text
As you can see the screenshot, the first thing it detects is "" which I don't want. I want to work only when there is an inline style present in the span tag and its corresponding end span tag.
Can someone please help me what change I need to make to get what I want?
The idea here is I am trying to strip out the tag only when there is inline style present in it but if there is a span tag with a class then it is fine.