in reply to regex to match a literal dot near end of string

Presumably, you know that only \w characters are in the suffix that you are trying to match, so replace the second .+ with \w+. I try very hard to not use .+ because it is so easy to get bitten when things don't work the way you think they might.

Scott