in reply to Re: How regexes fail.
in thread How regexes fail.

A sliding window is useless, since a lexer needs to match at the end of the last found token. However, the linked snippet could be modified to *expand* it's window instead of sliding it.