JavaVerbalExpressions icon indicating copy to clipboard operation
JavaVerbalExpressions copied to clipboard

Exposing the spans of matches in the API

Open matanox opened this issue 6 years ago • 1 comments

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 avatar Nov 29 '17 19:11 matanox

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

matanox avatar Dec 03 '17 19:12 matanox