I am just doing some revision for an upcoming exam on language design.
I came across the question:
Write a regular expression for all words where all the letters occur in alphabetical order.
I have written down:
a*b*c*d*e*f*g*h*i*j*k*l*m*n*o*p*q*r*s*t*u*v*w*x*y*z*
Which I am pretty sure is right, it just seems too simple for the amount of marks it's worth.
Any help will be appreciated.
Thanks

New Topic/Question
Reply



MultiQuote






|