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];