Skip to content

How do I find match offsets with a RegexSet using the C API? #973

Answered by BurntSushi
njlr asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this is why I suggested that you read the RegexSet docs. In particular, see its Limitations section. In short, no, RegexSet does not provide the ability to find offsets.

regex-automata 0.3 will enable finding the offsets, but only through lower level APIs. And I don't have any plans to expose that as a C API.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@njlr
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #971 on April 04, 2023 14:04.