title: Regex matching HTML option tags which are unselected and also selected
body: <p>Can some recommend a regex to return the value when an item is selected as well as unselected as seen below.</p>
  
  <pre><code>&lt;option value="32_1002_ACCT1001" selected="selected"&gt;ACCT1001 -- Accounting 1a&lt;/option&gt;
  &lt;option value="32_1002_ACCT1002"&gt;ACCT1002 -- Accounting 1b&lt;/option&gt;
  </code></pre>
  
  <p>My regex currently works only for the unselected option seen below.</p>
  
  <pre><code>(&lt;option value="([^"]+)"&gt;([^&lt;]+)&lt;\/option&gt;)
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Thanks for the great responses guys, however I should have been a bit more detailed and specific.</p>
  
  <p>I am using it in a <a href="http://www.screen-scraper.com/" rel="nofollow noreferrer">screen-scraper</a> extractor pattern as follows:</p>
  
  <pre><code>&lt;option value="~@COURSE_ID@~"&gt;~@COURSE_CODE@~ -- ~@COURSE_NAME@~&lt;/option&gt;
  </code></pre>
  
  <p>where ~@COURSE_ID@~ specifies the following regex query:</p>
  
  <pre><code>([^"]+)
  </code></pre>
  
  <p>Works fine for all option tags EXCEPT the first one which is already selected.</p>
  
  <p>I am testing out your suggestions at the moment, but if anyone wants to jump in with a sure fire solution that would be great.</p>
  
  <p>I'm really struggling with this one, nothing seems to be working!</p>