For example:
$s1 = \"Test Test the rest of string\" $s2 = \"Test the rest of string\"
I would like to match positively $s1 but
$s1
This does not cause Test Testx to return true.
Test Testx
$string = "Test Test"; preg_match('/^(\w+)\s+\1(\b|$)/', $string);