I have a long string of text that's broken up by semi-colons, so I have a regex that captures [^\;]+
. However, it's bugging because the content contains HTML apostrophes ( '
).
How can I write a regex that will capture everything but the semi-colons unless the semi-colon is part of the HTML apostrophe?