From d4501ea2ca71df2d5a9fafd306594a838938687d Mon Sep 17 00:00:00 2001 From: ruanyf Date: Fri, 4 Aug 2017 10:13:41 +0800 Subject: [PATCH] docs(regex) --- docs/regex.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/regex.md b/docs/regex.md index 0d3af56..6a7e216 100644 --- a/docs/regex.md +++ b/docs/regex.md @@ -546,7 +546,7 @@ let re = /(?\d{4})-(?\d{2})-(?\d{2})/u; capture2, // 第二个组匹配 01 capture3, // 第三个组匹配 02 position, // 匹配开始的位置 0 - S, // 原字符串 2015-01-05 + S, // 原字符串 2015-01-02 groups // 具名组构成的一个对象 {year, month, day} ) => { let {day, month, year} = args[args.length - 1];