title: Extract a substring in HTML tags by using Notepad++
body: <p>I am trying to extract a substring from a fragment of HTML code like this:</p>
  
  <pre><code>some text here. some text here.&lt;img src="//zhihu.com/equation?tex=m_%7Bt%2B1%7D" alt="m_{t+1}" eeimg="1"&gt;some text here.&lt;img src="//zhihu.com/equation?tex=p_t%3DE_t%28m_%7Bt%2B1%7Dx_%7Bt%2B1%7D%29" alt="p_t=E_t(m_{t+1}x_{t+1})" eeimg="1"&gt;some text here.
  </code></pre>
  
  <p>To draw substring <code>m_{t+1}</code> contained in the first <code>img</code> tag and <code>p_t=E_t(m_{t+1}x_{t+1})</code> in the second tag, I just use a regexp <code>&lt;img.+ alt="((?!eeimg).)*" eeimg="1"&gt;</code> in Notepad++, but the expression does not match the the two <code>img</code> tags seperately, it just shows a result which contains the whole HTML fragment.</p>
  
  <p>Can anyone show me a correct way? </p>
  
  <p>Thanks.</p>