[a-zA-Z](\.)[a-zA-Z]
will match for a dot encapsulated by uppercase or lowercase letters. The backslash is needed as an escape since the dot is part of regex syntax. How to replace the dot with the underscore depends on what programming language you want to perform this operation with.