Swapped regular expression syntax used to Perl.

It's more widely used, and means that I should be able to perform regex
matching in Javascript too.