title: Lua: Find string between two strings
body: <pre><code>local code = [[
      print(&quot;this is a trap&quot;)    
      asd(&quot;XDasdsadasdasd&quot;)
      print(&quot;this is a trap&quot;)
  ]]
  print(&quot;\n\n\n\n\n&quot;)
  print(string.match(code, 'asd(.*)'))
  </code></pre>
  <p>I made this but the problem is it also returns the print under it. It'll return anything under the asd(&quot;XDasdsadasdasd&quot;), but i only want whats inside asd(&quot;XDasdsadasdasd&quot;) to return that will be &quot;XDasdsadasdasd&quot;</p>