What regular expressions are equivalent to the patterns a?b and ab∗cd used as examples earlier? (Please note that the symbol ∗ in the pattern ab∗cd has a completely different meaning compared to its use in regular expressions.) We assume that the alphabet is {a, b, c, d, e}.
((a\mid b\mid c \mid d\mid e)\ast a (a\mid b\mid c \mid d\mid e)b(a\mid b\mid c \mid d\mid e)\ast )
((a\mid b\mid c \mid d\mid e)\ast ab (a\mid b\mid c \mid d\mid e)∗cd(a\mid b\mid c \mid d\mid e)\ast )