4 ms·
Capturing is not supported. That eliminates many normal regex usecases, where you want to be able to capture & interpret the data.
by twhitmore 4y ago
Capturing is not supported. That eliminates many normal regex usecases, where you want to be able to capture & interpret the data.
- pritambaral 4y agoCapturing can be supported by using another regex library in conjunction. Use Vectorscan/Hyperscan to eliminate most of the search space, then run a (slower) more featureful regex matcher where the former tells you is a match to extract information. After all, Hyperscan's original objective was to be able to find where, in a large input, any of many patterns may match. It doesn't really make sense to use it as a general purpose regex library, because it wasn't built for that.
- ramblerman 4y agoAt scale though? And even if that were the case you could grab your sentences from the 1TB file in front of you with hyperscan, and then do a capture on the results.