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
元字符 每一个正则表达式都是由 元字符 和 修饰符 组成的 [元字符] =》在 / / 中间具有意义的一些字符
1, 具有特殊意义的元字符
** 2 代表出现次数的 量词元字符(6个)** *: 0-多次出现 +:出现1-多次 ?:出现0-1次 {n}:出现n次 {n,}: n到多次 {n,m}:出现n-m次
var reg = /^\d+$/; //一到多个数字 // 验证手机号码 var reg = /^1\d{10}$/
The text was updated successfully, but these errors were encountered:
No branches or pull requests
元字符
每一个正则表达式都是由 元字符 和 修饰符 组成的
[元字符] =》在 / / 中间具有意义的一些字符
1, 具有特殊意义的元字符
** 2 代表出现次数的 量词元字符(6个)**
*: 0-多次出现
+:出现1-多次
?:出现0-1次
{n}:出现n次
{n,}: n到多次
{n,m}:出现n-m次
The text was updated successfully, but these errors were encountered: