Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream API (or matching across successive segments of data)? #213

Closed
timwoj opened this issue Aug 1, 2019 · 1 comment
Closed

Stream API (or matching across successive segments of data)? #213

timwoj opened this issue Aug 1, 2019 · 1 comment

Comments

@timwoj
Copy link

timwoj commented Aug 1, 2019

I saw that RE2 has the Consume API for continually matching against successive segments of data, but it appears that it always starts the match at the start of each segments. Is there a way to match across the boundary between two segments?

Say for example I have the pattern (\w+)=(\w+) and two segments of data, one that ends with key= and the other that starts with value. I'd like to be able for the matcher to keep track that it's seen part of the match so that it can finish the match on the next segment.

Is that possible with RE2?

@junyer
Copy link
Contributor

junyer commented Aug 2, 2019

Sorry, RE2 does not support streaming. There was some discussion about this a couple of years ago on #126 and #127.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants