Search target slice interface unification #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When searching through strings or sequences alike we want to be able to specify the search slice. Currently some of our interfaces only specified start position.
From what I can gather here we don't get much help with
lastIndexwith theRegExp()object. This means that we would have to pre-slice in order to support this for regexp, and if we do that, we will also have to either post match correct or have a match object that includes this and have helper properties to compute the absolute positions of the target string.TODO
The only site relating to RegExp that mentions start_index is
https://gitea.efforting.tech/efforting.tech/nodejs.esm-library/src/branch/main/source/parsing/generic-parsing.mjs
Then it is mentioned by
https://gitea.efforting.tech/efforting.tech/nodejs.esm-library/src/branch/main/experiments/reduction-scanner-1.mjs
Experiments are a bit in flux though and should probably be cleaned up and promoted to examples or just removed if no longer applicable.