In general, '\..*\.' will do it. Remember, '.' is a regex
metacharacter, so you have to escape it if you want a literal '.', you
have to escape it. However, that will also match '..', so you might
want to refine it a bit more. The regex '[^.]+' matches at least one
non-dot character, so you could put that in, like '\.[^.]+\.' Even that
might not work to catch URLs, because it will match ".foo."
To really match URLs in the most generic sense is close to impossible,
a) URLs don't have to be fully qualified - 'kaffaljidhma' might be a valid
URL for me but not for you, or vice versa
b) we can't know how clean your original text is - regular English prose
is unlikely to contain sequences like '.foo.', but if your original text
contains things like filenames, there's no telling what might be in it.