preg_match("/^([0-9a-zA-Z])+$/", $newvalue)
I have the above code for preg_match, to check if user input has at least one lower case, one upper case and one numeric value..
but this does’nt seem to work, as it accepts values if they are numeric OR lower case or upper case. and does’t make sure that one of each is present
What needs to be fixed?
Try this.It checks the all criteria of $newvalue containing at least one number, one lower case string and one upper case string
Example:
Refer this.It works.