took out unnecessary line in regExpFromPattern