title: Javascript, Regex, Reverse match
body: <p>I try to get the following using js regex:</p>
  
  <pre><code>string&lt;/span&gt;string&lt;/span&gt;string&lt;/span&gt;theStrngIWant
  </code></pre>
  
  <p>In one sentence i try to get any characters including new lines after the last <code>&lt;/span&gt;</code></p>
  
  <p>I try this pattern <code>/&lt;\/span&gt;((.|\n)*)/i</code>, I know the pattern won't work i just wanted to show what i want to capture:</p>
  
  <p>So after the last <code>&lt;/span&gt;</code> i want to capture anything included in the <code>.</code> token and because its not include new lines i added <code>\n</code>, I think its ok to use greedy without <code>?</code> because its the end of the string anyway, <strong>Also just to note i did try negative lookahead.</strong></p>
  
  <p>If any one know any regex for this case i will be very thankful.</p>