var reg = /^(?!_)(? !.*?_$)[a-zA-Z0-9_u4e00-u9fa5] $/; if (!reg.test (actual value string)) { alert('Please enter 5- 24-bit characters: supports Chinese, English, numbers, "_", Chinese is recommended'); }
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn