From 9354ddb01ba8f77305be50b0efd9504d65efbe11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Thu, 17 Nov 2022 04:19:33 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗启恒 <3013545725@qq.com> --- .../2022-11-17 \344\275\234\344\270\232.html" | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 "44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-11-17 \344\275\234\344\270\232.html" diff --git "a/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-11-17 \344\275\234\344\270\232.html" "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-11-17 \344\275\234\344\270\232.html" new file mode 100644 index 0000000..fcf4384 --- /dev/null +++ "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-11-17 \344\275\234\344\270\232.html" @@ -0,0 +1,21 @@ + + + + + + + Document + + + + + \ No newline at end of file -- Gitee From d5762b97c32f265bd53d3d462078f6fa2531e374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Thu, 17 Nov 2022 04:19:51 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗启恒 <3013545725@qq.com> --- .../2022-11-16 \347\254\224\350\256\260.md" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-11-16 \347\254\224\350\256\260.md" diff --git "a/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-11-16 \347\254\224\350\256\260.md" "b/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-11-16 \347\254\224\350\256\260.md" new file mode 100644 index 0000000..50d67ff --- /dev/null +++ "b/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-11-16 \347\254\224\350\256\260.md" @@ -0,0 +1,18 @@ +() + //使用replace分组,捕获 + //引用: \1:引用子表达式的内容 + // console.log(/(aab)\1{4}/.exec('aabaabaabaabaab')); + + //反捕获:?::将捕获到的子表达式隐藏 + // console.log(/(?:aabc)(ccab)/.exec('aabcccabaabcccab')); + + // |(or) + // 文件名由字母、数字、下划线构成,不可以以数字开头,后缀为.zip/rar/gz + // console.log(/[^\d]*\.zip|rar|gz/.exec('zip.zip')); + +​ //自左向右匹配,一旦匹配上 就不再回头 + +单词边界:\b + +环视 + //?=:紧跟着 ?!:不紧跟着 ?:-->反捕获 ??--> 非贪婪{0,1} \ No newline at end of file -- Gitee