Compiling nameSearch regex