Debugging regular expressions with precedence issues is a royal pain. The pattern "[a-z]+ '(Foo)|(Bar)'" matches "Bar'". Argh.