Python REGEX ignore case at the beginning of the sentence and take the rest
<p>I have this kind of results:</p>

<pre><code>Âª!Ã¨[008:58:049]HTTP_CLI:0 - Line written in...
</code></pre>

<p>And I want to ignore all the beginning characters like <code>Âª!Ã¨</code> and get only: <code>HTTP_CLI:0 - Line written in...</code> but in a simple regex line. </p>

<p>I tried this: <code>^[\W0-9]*</code> but is taking the extended ASCII characters plus the time and is not ignoring it, is doing the opposite...</p>

<p>Any help?</p>

<p>Thanks!</p>

<p>If you want to get everything after the closing square bracket, no matter what, and skip everything before that you can go with a <code>match</code> like this:</p>

<pre><code>s = "Âª!Ã¨[008:58:049]HTTP_CLI:0 - Line written in..."
m = re.match(r'^.*?]([\S\s]*)', s)
print(m.group(1))
</code></pre>

<p>Print's <code>'HTTP_CLI:0 - Line written in...'</code></p>

<p>This expression looks through an arbitrary number of characters before the closing bracket and matches everything after that. The matched group is available with <code>m.group(1)</code></p>

python regex ignore-case