you missed that I capture one short of the whole sequence.
You're right, I missed the fact that when using the lookahead assertion you didn't capture the last digit.
Obviously that could be "fixed" if you added a '.' to the end, but that would introduce the overlapping problem.
In reply to Re^6: Find Length Of Longest Ascending/Descending Sequence
by wind
in thread Find Length Of Longest Ascending/Descending Sequence
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |