Fixed error in matching a regexp. String and RegExp were swapped.