I have to test a password to see if it has at least 1 number and 1 alpha char in it and that there are no repeating characters ss kk 66 ect... i have done it inside javascript as i have used 2 espressions.. But in PHP, presume posix its different, i cannot manage to get it to work, i keep getting warnings and errors... :/
var pat2 = /(?=.{6,}$)(?=.\d)(?=.[a-z])/;
var pat1 = /(\w+)\1/; <- works in javascript but not in php argghh
elseif(!eregi("(?=.{6,}$)(?=.\d)(?=.[a-z])",$uname))
my php line..