I would probably use any of the many substrings / string functions in PHP (some of which are already mentioned). But also search for "." OR ". \ N" (and possibly ". \ N \ r") instead of "." . Just in case, for some reason, the sentence contains a period followed by a space. I think this will harden the likelihood of real results.
Example, search only "." on:
"I like stackoverflow.com."
You'll get:
"I like stackoverflow."
When really, I'm sure you will prefer:
"I like stackoverflow.com."
And as soon as you have this basic search, you are likely to come across one or two cases where it might miss something. Tune in as you launch it!
Alexander Trauzzi
source share