I only allowed letters, numbers, *, %, $, #, &, -, _, in the password, so I used the following regular expressions But looks like it's not working. Any suggestions or can anybody give me a correct one?
From php.net The special regular expression characters (that need to be escaped) are: . \ + * ? [ ^ ] $ ( ) { } = ! < > | : - Code (markup):