I have to search for largest word match in a vocabulary from a given string : I have a string "the big cat in the zoo", and my vocabulary has ["in the zoo, the zoo"]
i cant do a  direct search , have to search the combinations:
   1) zoo
   2) the zoo
   3) in the zoo

how to do this reverse search  and match in python