Inside regex: increment $c
what do you expect from an incremented regex?
Then your regex says greedy match ( any number or $c++ ) and number will match any time before trying the or branch.
Actually this might be the reason why incrementing a regex doesn't throw an error, it's never executed.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Regex to match ascending sequence
by LanX
in thread Regex to match ascending sequence
by ExReg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |