Regex exclude another regex from a regex

Viewed 24

I have this regex to find and replace : ; ? !

/(\u00AB|\u2014)(?:\s+)?|(?:\s+)?([\?!:;\u00BB])/g

but I'd like to ignore the characters within a style tag i.e <a style='font-weight:bold'>

Regex to ignore (?!.style=\".*\") How do I accomplish that?

0 Answers
Related