Regex – Match attribute in a HTML code [duplicate]
You have an apostrophe (‘) inside your character class but you wanted a quote (“). myAttr=\”([^”]*)\” That said, you really shouldn’t be parsing HTML with regexes. (Sorry to link to that answer again. There are other answers to that question that are more of the “if you know what you are doing…” variety. But it … Read more