Skip to content

Incorrect word boundary detection #743

Closed
@Lucretiel

Description

@Lucretiel

What version of regex are you using?

1.4.3

Describe the bug at a high level.

When scanning the string " abc를" with the pattern r"\babc\b", it returns 0 matches. It appears that the word boundary operator is failing to detect a boundary between "abc" and "를"; testing this string with https://util.unicode.org/UnicodeJsps/breaks.jsp indicates that a word boundary should be present there.

What are the steps to reproduce the behavior?

See above

What is the actual behavior?

The regular expression returns 0 matches

What is the expected behavior?

The regular expression returns a single match, "abc"

Additional information

This may be a duplicate of #579

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