in reply to My regex works, but I want to make sure it's not blind luck
At a minimum that will match either "." or ".\n".
In other words that will match any string of non-newlines with a period in it that may or may not end in a newline.