in reply to Re^5: Find Length Of Longest Ascending/Descending Sequence
in thread Find Length Of Longest Ascending/Descending Sequence

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.

  • Comment on Re^6: Find Length Of Longest Ascending/Descending Sequence