I have two strings like followings:
$s1 = "abccddkkxyz";
$s2 = "12334466987";

How to recognize ccddkk in $s1 and 334466 in $s2 ?

Thank you for your helps.