I'm not sure why you think it would be any easier to maintain that the non-regex solutions?
hdb's solution is extremely clever and obviously vastly superior in performance. Most impressive.
Nevertheless, the reasons I'd prefer to have to maintain the regex solution include:
Damian
In reply to Re^4: Finding repeat sequences.
by DamianConway
in thread Finding repeat sequences.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |