Split FindPattern functionality