title: How to match and find in a raw file with regex between two strings and get the whole strings between?
body: <p>I'm going to extract some data from a site, I want to find the string between two specific string and return in, how can I handle it? I am using JavaScript.</p>
  
  <p>I'm going to make it clear with adding the string I want to do extraction on,
  for example this is the text that I got :</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;td class="nf"&gt;&lt;span class="low"&gt;(0.08%) 40&lt;/span&gt;&lt;/td&gt;
  &lt;td&gt;48,180&lt;/td&gt;
  &lt;td&gt;48,460&lt;/td&gt;
  &lt;td&gt;asasasas&lt;/td&gt;
  &lt;td class="chart-td"&gt;&lt;a data-tooltip="saasasa" class="chart-icon" target="_blank" href="chart/price_aed"&gt;&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr data-market-row="price_try"
    data-title="&lt;div class='tooltip-row'&gt;&lt;span class='tooltip-row-txt'&gt;25920 aasas sasaa &lt;/span&gt;&lt;span class='tooltip-row-change'&gt;&lt;span class='type low'&gt;(0.12%) 30&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;hr&gt;&lt;div class='tooltip-row'&gt;&lt;span class='tooltip-row-txt'&gt;25940 asasa &lt;/span&gt;&lt;span class='tooltip-row-change'&gt;&lt;span class='type low'&gt;(0.04%) 10&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;hr&gt;&lt;div class='tooltip-row'&gt;&lt;span class='tooltip-row-txt'&gt;25930 sasaas &lt;/span&gt;&lt;span class='tooltip-row-change'&gt;&lt;span class='type low'&gt;(0.08%) 20&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;hr&gt; &lt;div class='highlight'&gt;assasa25,990&lt;/div&gt;&lt;div class='tooltip-info'&gt;sasasasa&lt;/div&gt;"
    class="pointer " onclick="if (!window.__cfRLUnblockHandlers) return false; window.location='chart/price_try'"
    data-price="25,920" data-cf-modified-4bf6cd1a2128b0ccaf953372-=""&gt;
    &lt;th&gt;&lt;span class="mini-flag flag-tr"&gt;&lt;/span&gt;skkss &lt;/th&gt;
    &lt;td class="nf"&gt;25,920&lt;/td&gt;
    &lt;td class="nf"&gt;&lt;span class="low"&gt;(0.12%) 30&lt;/span&gt;&lt;/td&gt;
    &lt;td&gt;25,860&lt;/td&gt;
    &lt;td&gt;26,010&lt;/td&gt;
    &lt;td&gt;sssss&lt;/td&gt;
    &lt;td class="chart-td"&gt;&lt;a data-tooltip="sssss" class="chart-icon" target="_blank" href="chart/price_try"&gt;&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr data-market-row="price_cny"
    data-title="&lt;div class='tooltip-row'&gt;&lt;span class='tooltip-row-txt'&gt;24830 saasa asasa &lt;/span&gt;&lt;span class='tooltip-row-change'&gt;&lt;span class='type low'&gt;(0.08%) 20&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;hr&gt;&lt;div class='tooltip-row'&gt;&lt;span class='tooltip-row-txt'&gt;24820 222 ssa &lt;/span&gt;&lt;span class='tooltip-row-change'&gt;&lt;span class='type low'&gt;(0.12%) 30&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;hr&gt;&lt;div class='tooltip-row'&gt;&lt;span class='tooltip-row-txt'&gt;24830 2ss 22222 &lt;/span&gt;&lt;span class='tooltip-row-change'&gt;&lt;span class='type low'&gt;(0.08%) 20&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;hr&gt; &lt;div class='highlight'&gt;sasasas: 24,890&lt;/div&gt;&lt;div class='tooltip-info'&gt;ssssaaa&lt;/div&gt;"
    class="pointer " onclick="if (!window.__cfRLUnblockHandlers) return false; window.location='chart/price_cny'"
    data-price="24,830" data-cf-modified-4bf6cd1a2128b0ccaf953372-=""&gt;
    &lt;th&gt;&lt;span class="mini-flag flag-cn"&gt;&lt;/span&gt;ssssss &lt;/th&gt;
    &lt;td class="nf"&gt;24,830&lt;/td&gt;
    &lt;td class="nf"&gt;&lt;span class="low"&gt;(0.08%) 20&lt;/span&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I want to retrieve all strings which string with <code>&lt;tr data-market-row="price_try"</code> and ends with <code>/price_try"&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;</code> </p>