Some pretty basic questions regarding regexp's
Posted on 2003-10-27
I'm using this regexp with preg_match:
to determine if a string contains minimum 1 maximum 3 numbers in it. (For a new, user-entered password)
It seems to work, but I was wondering if this is right and/or this could be done more easy!
I also want to check if a character (a-z, A-Z) was not entered more then 3 times subsequently (Donno how to say it correctly in english :-) )
Like rTaaaa12 -> the "aaaa" should make the pass invalid.
If anyone has suggestions/links to existing password validation regexp's, they could be usefull too offcourse.
Any help appreciated!