fix regexp (unbalanced parens)