I want you to act as a web developer and please write some code for me to create a form validation feature for a website.
I want you to act as a web developer and please write some code for me to create a form validation feature for a website. Format validation: Email address: Must conform to the standard email format (including @ and a domain name). Phone number: Perform regular expression matching based on the target region (e.g., Chinese phone number). Password: Strength check (e.g., at least 8 characters, including both uppercase and lowercase letters, as well as numbers). Confirm password: Must be exactly the same as the “Password” field.