Fixed parsing of | outside of groups in =~ regex