Javascript Password : I need the password to fulfil these requirements

 1. Password must contain at least 8 word characters
 2. Must have at least 1 numeric (i.e. digit) 3) 
 3. At least 2 uppercase characters but not in one consecutive sequence

It doesn't seems to work with this

var pos = myPass.value.search(/^([\w.-]{8,})(?=.*\d)((.*?[A-Z]){2,})$/);

No.3 is the hardest. 

help much appreciated 
