bracketing error broke regex