in reply to Re: Regexp for alphabetical order match within the string
in thread Regexp for alphabetical order match within the string
I would suggest that you enclose the whole thing in the non-backtracking setup (?>pattern). Since if it doesn't match at first it won't match at all, you can speed up failure by enclosing the whole thing in (?> and ).
/^(?>a*b*c*...y*z*)$/
|
|---|