can't verify password input while using Titanium Mobile?
<p>I have a trouble in password validation while using Titanium mobile. Please help me out. This is my code</p>

<pre><code>var re = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}/;
if(re.test(newPass))
{
    return true;
} else
{
    alert("Password must contain at least one number, one lowercase and one uppercase letter");
    return false;
}
</code></pre>

<p>It is supposed to go return true if I write the password: Abc123, or Abc1A23. But it keep returning to me false value. Even though I tried this peace of code on the web browser. And it works fine. I don know whether Titanium mobile understands this: <code>var re = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}/;</code> or not. Or I need to write it differently. Please help me out.
Thanks a lot.</p>
