Regex Unexpected Behavior With Optional Groups Stack Overflow

Regex Unexpected Behavior With Optional Groups Stack Overflow