VerbalExpressions / VerbalExpressions/JavaVerbalExpressions

Exposing the spans of matches in the API

Open
#63 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
2.6k
Forks
243
Avg merge
26m
Merged PRs (30d)
1

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the JavaVerbalExpressions matching API and the existing unit tests, then compare the requested behavior with the linked Python and Java Matcher references. Done means the API exposes match spans in addition to matched text, with tests covering the new result.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.