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.
In reply to Re^2: How regexes fail.
by ikegami
in thread How regexes fail.
by jdoege
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |