I am having a bit of difficulty understanding the order of precedence in boolean logic for the OR operation. Take this example:
Assume the following regular expression:
Why is it that this accepts the strings:
a c abba abbabbba abbabbc
But when I flip it around and use the regular expression
I can now only ever get the following strings when I check it with a RegExp tester:
I know it is to do with the order of precedence but I don't understand why, please could somebody enlighten me?