So Σ = {a, b}, I need to find a regular expression representing all strings that contain either ba or abb. Here's what I got, but I wonder if it's correct.
(ab)(baUabb)(ab)(baUabb)(ab)*
It seems to be that it's a bit too long.
Would appreciate any help!
(a|b)*(ba|abb)(a|b)*? – Dennis Nov 10 '23 at 06:45