[HWL] limit can only enter a regular expression of Chinese or English name

xiaoxiao2021-03-06  42

reference

: [/ U4E00- / U9FA5] {2,5} | (^ [A-ZA-Z] [/ s.]? ([A-ZA-Z] [/ s.]?) ​​{0,4 } [A-ZA-Z] $)

Conditions: 1. You can only enter Chinese or English 2. Chinese: 2-5 Chinese characters, 3. English: unlimited case, can be spaced or "." The interval, the spacer is not more than 5 times, can not be continuous, the first end must be letter. It should comply with the general English name format. (In Windowxp, .Net1.1) Interested netizens, please improve, I still want to add a limit to the number of English.

转载请注明原文地址:https://www.9cbs.com/read-53451.html

New Post(0)