Possible Duplicate:
Highlight the difference between two strings in PHP
I have those strings for example:
example XY2\r\n(system x)
and
something else XY2
As you see, only the XY2 is the same. Whats the best way to check if 2 strings have something in common, like XY2?
Thanks!