We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以完善一个既可以中文也可以字母同时可以中文加字母结构的正则吗?
The text was updated successfully, but these errors were encountered:
可以啊, 现有的做个组合即可, 也可以单独做个"或"的判断: if(cRE.test(str) || eRE.test(str))
if(cRE.test(str) || eRE.test(str))
/^(?:(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+|[a-zA-Z])$/
Sorry, something went wrong.
No branches or pull requests
可以完善一个既可以中文也可以字母同时可以中文加字母结构的正则吗?
The text was updated successfully, but these errors were encountered: