BeRo1985 / flre

FLRE - Fast Light Regular Expressions - A fast light regular expression library
GNU Lesser General Public License v2.1
94 stars 23 forks source link

Overloaded MatchAgain that starts where the previous search finished #47

Closed pyscripter closed 6 years ago

pyscripter commented 6 years ago

This is just a convenience function for when you may not want all matches (so you don't use MatchAll), but you want to keep on searching without having to calculate the new start position.

pyscripter commented 6 years ago

e.g. if MatchNext(Captures); You would need to store internally a pointer to the Input string and to the last found match position. Maybe not such a good idea.