Solution One:"The Minimum password length is 7, which must contain the following non-alphanumeric characters: 1",One of the "1" is not specific to the number 1, but includes some special characters, such as [email protected]#$%^&* () _+, casually
"The minimum password length is 7, which must contain the following non-alphanumeric characters: 1" means that there must be at least one non-alphanumeric character,
Please use ~! @ # $ % ^ & * () _ +, Just give it a try!
Solution 2:
The minimum
1. Check if the value of the table Core_config_data ' Web/unsecure/base_url ' and ' Web/secure/base_url ' is the correct link address2. Delete all subdirectories and files under System directory var (cache information) 3. Refresh Browser reference:
JS to determine the input string length instance code (Chinese character count two characters, alphanumeric count one)
Text input, this method validation is thought of because the database table field length limit causes the commit to fail.
The
Now start to generate a variety of PHP verification code journey, novice to drive, please swipe!First of all, let's start mister into a background image with a CAPTCHANote: There is no imagejpg () function, only the imagepng ()
This article mainly introduces the PHP is only reserved Chinese characters alphanumeric, has a certain reference value, now share to everyone, have the need for friends can refer to
PHP only keeps Chinese characters alphanumeric
All Chinese and
Str.isalnum () All characters are numbers or letters, return Ture for true, or False.Str.isalpha () All characters are letters ( when the string is Chinese, also returns True), Ture returns True, otherwise False is returned.Str.isdigit () All
Trim is the removal of whitespace characters or other predefined characters on either side of a string.
If you specify a 2nd parameter (the symbol you want to remove), can you remove more than one?
But now it is not sure what kind of symbol will be
If we want to match the Chinese characters in PHP and JS as long as the use of regular/^[\\x{4e00}-\\x{9fa5}]+$/u, matching double-byte characters (including Chinese characters): [^/x00-/xff] can, specifically as follows
JS version
Regular
1. Meta-characters:
. It matches any character except the newline character in alternate mode (re. Dotall) It can even match line breaks
^ matches the beginning of the line. Unless you set the MULTILINE flag, it only matches the beginning of the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.