Get the App
SLTechnology News&Howtos  ›  Servers  › 

Regular verification can only enter between 2 and 10 characters of Chinese, numbers and letters.

Shulou Source: shulou.com Published: 2022-06-02 23:08:22 11月13日 Update

Var reg = / ([u4e00-u9fa5\ dA-Za-z]) {2jre 10} /; / / this expression has some special characters such as @ that can be verified and found after the actual operation.

The following regular expressions include ordinary letters and numbers that do not include special symbols

So the following regular expressions containing ordinary letters and numbers meet the requirements.

^ [a-zA-Z0-9] + $/ / this does not contain Chinese characters in actual development

Regular expressions that do not contain special symbols ('"\), but can contain other characters

^ [^ ('"\\?)] + $

Tags: Regular special expression letter character number ordinary actual symbol verification Chinese use Chinese character development inter Chinese input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Xiaomi Huawei MariaDB Shulou Information