Take the alphabet A={0,1} I need to build a regular expression for the language with less or equal substrings 011 than 110.
I tried to figure out what would be the finite automata but I'm not to sure. I also tried to proof it isn't regular using Myhill-Nerode theorem but the problem is the language "readjusts" itself:
110011 (1 110, 1 011)
011110 (1 110, 1 011)
011011 (2 011, 1 110)
110110 (1 011, 2 110)
Now I'm convinced it should be regular but don't know how to proof it.
Edit:
¿Should be something similar to: $(0^{+}11^{+}+11^{+}0^{+})^{*}110(0^{+}11^{+}+11^{+}0^{+})^{*} + \epsilon$?