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*)$/
In reply to Re: Re: Regexp for alphabetical order match within the string
by jweed
in thread Regexp for alphabetical order match within the string
by prostoalex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |