For example:
$s1 = "Test Test the rest of string"
$s2 = "Test the rest of string"
I would like to match positively $s1
but not $s2
, because first word in $s1
is the same as second. Word 'Test'
is example, regular expression should work on any words.