python split regex into multiple lines : <p>Just a simple question. Lets say i have a very long regex.</p>

<pre><code>regex = "(foo|foo|foo|foo|bar|bar|bar)"
</code></pre>

<p>Now i want to split this regex into multiple lines. I tried</p>

<pre><code>regex = "(foo|foo|foo|foo|\
          bar|bar|bar)"
</code></pre>

<p>but this doesnt seems to work. I get different outputs. Any ideas?</p>
