In my grammars – Computer theory class I am trying to create a regular expression in alphabetical order(a-z)
l = {a, b, x, y, z, i, o, u, e, c}
This is what i have come up with using the kleene closure
aeiou(x*, y*, z*, i*, o*, u* e*)
With the kleene close * thats zero or more so that should force abceioxyz?
We have not been learning this type of form
[^abc]
am i on the right track?
As far as I understand, you want to capture strings with the following format:
a‘s, afterwards any number ofb‘s, then any number ofc‘s, and so on…Let’s consider a derived example: We want all strings consisting of
0and1and that has all0‘s before1‘s: Therefore, we can simply write0*1*. Now try to adapt the pattern for more complex alphabets.