Do you really need it to be a regex?
# $str defined elsewhere print "Is alphabetical\n" if( $str eq join '', sort split //, $str );
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Regexp for alphabetical order match within the string
by hardburn
in thread Regexp for alphabetical order match within the string
by prostoalex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |