Skip to content

匹配多个同样的模式串 #8

Open
@Gavingx

Description

@Gavingx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions