Python: unexpected end of pattern
<p>This regex is used for removing all php comments. Could you please check the regex?</p>

<pre><code>content = ""
    with open(file_path, 'r') as content_file:
        content = content_file.read()

re.sub(r"""(?|(?:#|//)([^\r\n]*)|/\*([\s\S]*?)\*/)""", "", content)
</code></pre>

<p>What's wrong with my regex? Thanks.</p>
