Regular expression not working in pywinauto unless I give full text
<p>Here is the code snippet that I am using:</p>

<pre><code>browserWin = application.Application()
browserWin.Start(&lt;FirefoxPath&gt;)
# This starts the Firefox browser. 
browserWin.Window_(title_re="\.* Firefox \.*")
</code></pre>

<p>If I use the expression: ".* Mozilla Firefox Start Page .*", it works. However, if I only use a partial text, it doesn't work. </p>

<p>What am I doing wrong here?</p>

<p>Escaped <code>.</code> with "\" means real dot symbol should be at the start of the text. Just remove "\".</p>

python regex pywinauto