Here's a brute-force macro using regular expression search/replace which unfortunately is not automatically part of the search/replace function built-in to Excel. It would be more useful to prompt for the search/replace patterns instead of hardcoding, but you'll get the idea as this is just an example of using regular expressions. Note you may have to add the regex reference to your workbook first.
To use, select the range, then run the macro after adding it.
Sub SearchReplaceRegex()
Dim reg As New RegExp ' regex object
Dim searchPattern1 ' look for this
Dim searchPattern2
Dim replacePattern1 ' replace with this
Dim replacePattern2
Dim matchCell As Range ' selected cell
' Set search/replace patterns
searchPattern1 = "^http://" ' http:// at the beginning of the line
searchPattern2 = "\..*$" ' 1st period followed by anything until the end of the line
replacePattern1 = "" ' replace with nothing
replacePattern2 = ""
' regex object settings
reg.IgnoreCase = True
reg.MultiLine = False
' Loop through each selected cell
For Each matchCell In Selection
' Does it match the first pattern?
reg.Pattern = searchPattern1
If reg.Test(matchCell) Then
' If so, replace the matched search pattern with the replace pattern
matchCell = reg.Replace(matchCell, replacePattern1)
End If
' Change to the second pattern and test again
reg.Pattern = searchPattern2
If reg.Test(matchCell) Then
matchCell = reg.Replace(matchCell, replacePattern2)
End If
Next
End Sub
For more info, see this post which has a ton of good info: How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops