I would like to use regex to match following strings:
aba
ababaa
abababaaa
...
These strings follows the pattern :
(ab){1}(a){1}
(ab){2}(a}{2}
(ab){3}(a){3}
...
Is it possible to create a generic regex to much such pattern ( like (ab){n}(a){n}
) ?