regextend
v1.1.0
Published
Extended regexes - captures the offset of regex capturing groups
Downloads
66
Readme
Regextend
Regexes, only extended.
Features
All the features native RegExp
instances have, but with an added .offsets
property. In theory this follows an earlier draft of the Match indices proposal
but without the nested .groups
property. In future we need to either deprecate
this package and switch to the polyfill created there or implement this as a complete
polyfill:
.groups
has (since this was built) been renamed to.indices
.indices
is now a nested array so that it can contain the end index too- Named capturing groups are not supported.