I have a string and I want to match something at the start and end with a single search pattern. How can this be done? Let's say we have a string like: string = "ftp://www.somewhere.com/over/the/rainbow/image.jpg" I want to do something like this: re.search("^ftp:// & .jpg$" ,string) Obviously, it's incorrect, but I hope it gets my point across. Is this possible? Continue reading...