With
preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE);
is it possible to search a string in reverse? ie. return the position
"Greedy" is the key word here. * is by default greedy *? limits greediness to the bare minimum.
So the solution is to use the combination, e.g. (searching for last period followed by a whitespace):
/^.*\.\s(.*?)$/s