learn-regex-zh icon indicating copy to clipboard operation
learn-regex-zh copied to clipboard

:cn: 翻译: 学习正则表达式的简单方法

Results 6 learn-regex-zh issues
Sort by recently updated
recently updated
newest added

是不是要介绍下 ?:

假如有这么个字符串:2020年8月15日我来到了北京,想起了2013年的事情,现在已经是9时43分了。用正则怎么抽出["2020年8月15日", "2013年”, "9时43分”]? 即:我想抽出某个字符串中的日期和时间,但是不期望得到["2020年", "8月", "15日", "2013年", "9时", "43分"]?

2.4花括号实例那里 "[0-9]{2}" => The number was 9.9997 but we rounded it off to 10.0. 这里匹配的应该只有后面的10吧

### 就是表达下对作者的敬仰之心 ## 牛逼 # 奈何本人没文化

获取$ 字符之前,应该都是获取之后