How to make python ignore square bracket?
the regex pattern should be
search(r&quot;(\d+),(\d+)\]*\.avi$&quot;, f)

previously, the pattern is &quot;13445&quot; + &quot;.avi&quot;
now, the pattern is &quot;13445&quot; + &quot;]&quot; + &quot;.avi&quot;, and it should be fine with or without square brackets.