title: Regex to match any HTML attribute value and quotes
body: <p>I have seen this question on SO before, but it was specific to a tag or attribute</p>
  
  <p>I need to match any attribute values with a regex. I have the following, which matches both the attribute and value:</p>
  
  <pre><code>(\S+)=["']?((?:.(?!["']?\\s+(?:\S+)=|[&gt;"']))+.)["']?
  </code></pre>
  
  <p>But, I only want it to match the value and quotes around the value. It also needs to account for single and double quotes.</p>
  
  <p><strong>I understand the suggestions to avoid doing this with HTML and to use a parser, but this is a specific needed situation. I am only using it to color code the attribute value.</strong></p>
  
  <p>Any help?</p>