Compile name regex