title: Extracting data using regular expressions
body: <p>Given the following string, how would I extract the string between the quotes that follows data-selected (i.e. THIS-DATA).  I would like it to work regardless of whether single or double quotes are used, or whether there is any white-space before or after the equal sign.  Thank you</p>
  
  <pre><code>&lt;td&gt;&lt;img alt="abc" src="lib/templates/administrator/images/star.png" data-selected="THIS_DATA" title="None" class="vtip"&gt;&lt;/td&gt;
  </code></pre>