I am aware that this question does not make much sense, since I could just use Extended Regular Expressions (ERE). But let's say for a minute, that implementing alternation is the only option right now. How would I implement it only with BRE? Or would I have to find a workaround instead?
Let's say we have this string:
My goal now is to match AAAAA, ======, -----, ====== and AAAAAAAAA separately only with Basic Regular Expressions. With ERE this would be quickly done, but I would like to know how one would implement it only via BRE. So far, I couldn't find a proper way to do it without having some of the strings being matched overlapping into eachother (like regex matching "AAAAA==" which shouldn't happen).