Skip to content

weird result of regex match #1018

@DamonsJ

Description

@DamonsJ

What version of regex are you using?

v1.8.4

Describe the bug at a high level.

match string "戦場のヴァルキュリア3" with pattern r"\w+|[^\w\s]+" give 1 match
but using https://regexr.com/ with PCRE gives two matches, one is "戦場のヴァルキュリア" and another is "3"

What are the steps to reproduce the behavior?

here is the rust code I used:
main.rs.txt

What is the actual behavior?

the rust code gives 1 match, but it looks 2 matches is right

What is the expected behavior?

expect 2 matches

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions