In the 'Construction Advice' companion forum to this, there is normally a sticky note with the 'Posting Guidelines'; however it seems to have disappears for the moment. In there, we normally ask for the regex and programming language (if appropriate) because different version have different capabilities - sadly not all regex engines work in the same way and understand the same syntax.
One of the other things we normally as for is a reasonable sample of the real text you are dealing with. In this case, what is important is what immediately follows the URL so that we can reliably find its ending. In this case, the ".html/' could be straight forward (but what about the URL "http://geoffJones/2006/05/freds.html/realfile.png/" - that's perfectly legal) but when we have to handle ANY file type then the problem is harder. Therefore I've assumed that:
1) you are using a regex that allows for lookaheads
2) the end of all URLs can be found by looking for a '/' that is NOT followed by an alphanumeric character
Therefore, try:
\b(http://geoffjones.com/2.*?)\.\w+/(?!\w)
as the pattern and
$1
(or whatever the equivalent is in your language) as the replacement string. I've used the 'ignore case' option as well.
Hope this helps.
Susan
PS: if lookaheads are not allowed, you could try a pattern of "\b(http://geoffjones.com/2.*?)\.\w+/(\W)" and a replacement string of "$1$2" - will have problems if the URL ends at the end of the text and/or the end of a line, depending on the line/file terminators.