Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposing the spans of matches in the API #63

Open
matanox opened this issue Nov 29, 2017 · 1 comment
Open

Exposing the spans of matches in the API #63

matanox opened this issue Nov 29, 2017 · 1 comment

Comments

@matanox
Copy link

matanox commented Nov 29, 2017

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?

@matanox
Copy link
Author

matanox commented Dec 3, 2017

In case the PR is accepted, I suggest usage of the new method could be exemplified in the README.

@matanox matanox changed the title Feature idea/question Exposing the spans of matches in the API Dec 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant