Skip to content

Exposing the spans of matches in the API #63

Description

@matanox

Wouldn't it be nice to add in the API the option to get the spans of the matches, in addition to just the matches, in the spirit of these python and Java implementation?

https://stackoverflow.com/a/250303/1509695
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#start()

Or is this already baked in and I missed it in the source or unit-tests code?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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