I am working on a regex for matching all quotes (double " and single ' alike), which must have specific characters in front of them and will end upon reaching the same quote type or when encountering an HTML comment (<!--).The rules of the game are:[*]The HTML tags themselves (e.g. "<a>") do not matter; the regex only takes the input from the attribute section of the HTML tag (<a all="of this in bold is the attribute section">)[*]The regex must be able to find both single quotes (') and double quotes ("), but only escape upon reaching it's own quote type (\1), an HTML commenct (If an HTML comment is encountered the quote will be interrupted, but is still considered a quote: <a id="works <!-- inpterrupted -->[*]Only a specific set of characters must exist before the first quote, following this pattern: [^\w!#