title: Python Regex stop at '|' character
body: <p>I am trying to find a URL in a Dokuwiki using python regex. Dokuwikis format URLs like this: </p>
  
  <pre><code>[['insert URL'|Name of External Link]]
  </code></pre>
  
  <p>I need to design a python regex that captures the URL but stops at <code>'|'</code></p>
  
  <p>I could try and type out every non-alphanumeric character besides <code>'|'</code>
  (something like this: <code>(https?://[\w|\.|\-|\?|\/|\=|\+|\!|\@|\#|\$|\%|^|&amp;]*) )</code></p>
  
  <p>However that sounds really tedious and I might miss one. </p>
  
  <p>Thoughts?</p>