python - Regex for X or not Y -
i have long string of text that's broken semi-colons, have regex captures [^\;]+. however, it's bugging because content contains html apostrophes ( ' ).
how can write regex capture semi-colons unless semi-colon part of html apostrophe?
(&\s+?;|[^;])+ match html entities if single characters.
Comments
Post a Comment