From 260ff1e6352b11646a09ecea805f3ca79ffea1cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=B8=96=E6=B6=9B?= <2124876211@qq.com> Date: Tue, 15 Nov 2022 08:10:15 +0000 Subject: [PATCH 1/2] lst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林世涛 <2124876211@qq.com> --- .../2022.11.14\344\275\234\344\270\232.html" | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 "23\346\236\227\344\270\226\346\266\233/\344\275\234\344\270\232/2022.11.14\344\275\234\344\270\232.html" diff --git "a/23\346\236\227\344\270\226\346\266\233/\344\275\234\344\270\232/2022.11.14\344\275\234\344\270\232.html" "b/23\346\236\227\344\270\226\346\266\233/\344\275\234\344\270\232/2022.11.14\344\275\234\344\270\232.html" new file mode 100644 index 0000000..edc6c30 --- /dev/null +++ "b/23\346\236\227\344\270\226\346\266\233/\344\275\234\344\270\232/2022.11.14\344\275\234\344\270\232.html" @@ -0,0 +1,22 @@ + + + + + + + Document + + + + + \ No newline at end of file -- Gitee From 8807ef5ab4f42784d7808fbe4d9bb534005d6933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=B8=96=E6=B6=9B?= <2124876211@qq.com> Date: Tue, 15 Nov 2022 08:10:36 +0000 Subject: [PATCH 2/2] lst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林世涛 <2124876211@qq.com> --- .../2022.11.14\347\254\224\350\256\260.md" | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 "23\346\236\227\344\270\226\346\266\233/\347\254\224\350\256\260/2022.11.14\347\254\224\350\256\260.md" diff --git "a/23\346\236\227\344\270\226\346\266\233/\347\254\224\350\256\260/2022.11.14\347\254\224\350\256\260.md" "b/23\346\236\227\344\270\226\346\266\233/\347\254\224\350\256\260/2022.11.14\347\254\224\350\256\260.md" new file mode 100644 index 0000000..46a7d0a --- /dev/null +++ "b/23\346\236\227\344\270\226\346\266\233/\347\254\224\350\256\260/2022.11.14\347\254\224\350\256\260.md" @@ -0,0 +1,25 @@ +\d [0-9] + +\w [0-9a-zA-Z_] + +{m}匹配m 次 + +{1,}:1次或者多次 + + +{0,}:0次或多次 * + +{0,1}:0次或者1次 ? + +懒惰模式 末尾加? + +^ 非 排除 + +console.log(/1[^124679]\d{5,9}/.exec('1821231234')); + +^ 必须以。。开头 + +console.log(/1[^124679]\d{5,9}/.exec('1821231234')); + +$ 以。。。结尾 + + console.log(/^1[358]\d{5,8}4$/.exec('1821231235')); \ No newline at end of file -- Gitee