fix the regex syntax

/cc @yegg