Python: Regular Expressions
<p>I'm trying to use regular expressions to search through all files in a directory then eventually it will change the name of the files.</p>

<p>Here's what I have so far.</p>

<pre><code>def regExp():
    os.chdir("C:/Users/David/Desktop/Test/Files")
    files = os.listdir(".")
    for x in (files):
        inputFile = open((x), "r")
        content = inputFile.read()
        inputFile.close()
        try:
            regex_txt = ("\(;;\)")
            regex = re.compile(regex_txt)
            print (regex.findall(x))
</code></pre>

<p>Getting the following error message</p>

<pre><code>File "&lt;module1&gt;", line 108
    print (regex.findall(x))
                           ^
</code></pre>

<p>SyntaxError: unexpected EOF while parsing</p>

<p>Any help is appreciated </p>
