I have a regular expression that looks for any number divisible by 4 surrounded by brackets.
I have the working regex, but I'm unsure why it works and mine doesn't.
My
pattern doesn't work. It accepts [2014] as a valid match.
I use an even grouping of conditions: (condition1|condition2|condition3), but it fails. The working solution utilizes ((condition1|condition2)|condition3). I don't understand the difference in the logic considering it's an OR condition.