Skip to content

permit empty capture groups? #106

Closed
Closed
@BurntSushi

Description

@BurntSushi

It seems like both Ruby and Python support empty capture groups. Their use is a little niche, but it probably isn't hard to permit them.

>>> import re
>>> m = re.match('()', 'hi')
>>> m.group(0)
''
>>> m.group(1)
''

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions