Remove some unneeded imports of re, and compile one pattern