I am doing a textbook problem and I am trying to understand how regex works with Python. In python, I tried doing:
"(aa)*|(bb)*"
I seem to be accepting any string and I also want to limit accepting strings that have only {a,b}. I am new to regex, so referring to documentation is a bit confusing at the moment, too. I understand at the moment that as long as our strings are even, then it should be accepted. I appreciate any advice.