title: location.search.match in java script
body: <p>Hi everyone I'm beginner CTF player and I have same lake with javascript and I face following problem </p>
  
  <p>I couldn't understand what is the intention of following line </p>
  
  <pre><code>location.search.match(/e=(.*)/)[1]))
  </code></pre>
  
  <p>This is complete code </p>
  
  <pre><code>        if(location.search) {
          var div = document.currentScript.parentNode.appendChild(document.createElement('div'));
          div.className = 'alert alert-danger';
          div.role = 'alert';
          div.appendChild(document.createTextNode(unescape(location.search.match(/e=(.*)/)[1])));
      }
  </code></pre>
  
  <p>can u help me to understand it </p>