Let's play golf! This challenge is to match strings where the letters are in alphabetical order - for example, abcfjz
would pass, but acb
would not. Whitespace should be ignored - ab c d
should pass. You have to try to get the regular expression as short as possible!
To test a regular expression on the test cases below, type it into the text input. Each test case will be marked as passed or failed respectively - you are aiming to get as many test cases as you can to pass. Note that JavaScript must be enabled for this feature to work. The regex engine used is the JavaScript regex engine; it is similar to PCRE, but with a few differences.