I would like to generate a string based on the regular expression I have.
The purpose of this function is when someone forgets their password, and completes the form for "Email New Password", I generate a random password that will be emailed to them. This new password must satisfy the conditions of my regex.
This is my regex:
'/.*^(?=.{6,})(?=.*[A-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\W).*$/'