Skip to content

pyre2 anchor '$' have non standard non re compatible behaviour #41

@omerlaufer

Description

@omerlaufer

documentation of gnu regex and also re module says:

This operator can match the empty string either at the end of the string or before a newline character in the string

look at this simple example:

re.findall(r'abc$', 'bla bla abc\n')
['abc']

re2.findall(r'abc$',  'bla bla abc\n')
[]

Is this behaviour is intentionally?

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