add search pattern in text, compiled, not tested