Fix a few regexes that needed appropriate escaping

Mostly around curly braces alone, which (while they seem to work in JS), are technically illegal by themselves in regex.

Changing this fixes issues with more 'conformant' Regex implementations (Java :P), while also not affecting JS (Tests all still pass)