gagolews / gagolews/stringx

Implement `regexec2` using `stri_locate_first_regex`

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
28
Forks
0
PR merge metrics
No merged PRs in 30d

Description

`stri_locate_first_regex` does not distinguish between a non-existing capture group and a no-match to a capture
group in the case of many patterns. Also, it does not return capture group names.

Until https://github.com/gagolews/stringi/issues/424 and/or https://github.com/gagolews/stringi/issues/127 is resolved,
the current version of `regexec2` must be implemented based on `stri_locate_all_regex`, and this includes some performance penalty.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the existing regexec2 entry point and compare the results from stringi's stri_locate_all_regex and stri_locate_first_regex. Review stringi issues #424 and #127 for the upstream limitations. Done means regexec2 handles nonexistent versus unmatched capture groups and returns capture-group names, with the documented performance tradeoff.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
backend
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.