Clean up Regex and improve exiting out of parentheses.