changes regex to exact matches