my $regex = qr# (\d) (??{ my $c //= $1 ; ++$c })+ #x; "2345654321" =~ $regex; print $&;
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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |