title: Regex Catastrophic backtracking with a specific pattern
body: <p>I'm not a regex expert but my current pattern causes my front-end to freeze.</p>
  
  <pre><code>/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&amp;%@!\-\/]))?$|^(\/?([a-zA-Z0-9_\.\-]+)?)+$/
  </code></pre>
  
  <p>Testing with : test/getCalling/logs.json,, </p>
  
  <p>I would appreciate any suggestion.</p>