Regex Alternation Order
问题 I set up a complex regex to extract data from a page of text. For some reason the order of the alternation is not what I expect. A simple example would be: ((13th|(Executive |Residential)|((\w+) ){1,3})Floor) Put simply I am trying to either get a floor number, a known named floor and, as a back-up, I capture 1-3 unknown words followed by floor just in case to review later (I in fact use a groupname to identify this but didn't want to confuse the issue) The issue is if the string is on the