Fix error

Turns out PHP regexes don't even have a `g` flag. Derp.