#Check if the string starts with "The" and ends with "chennai":
txt = "The rain in chennai"
x = re.search("^The.*chennai$", txt)