How to check if any item from a list of strings is in a big string?

inkhorn matt.dubins at sympatico.ca
Fri Jul 10 17:39:14 EDT 2009


Thanks all!!  I found the following to be most helpful:  any(substr in
long_string for substr in list_of_strings)

This bang-for-your-buck is one of the many many reasons why I love
Python programming :)

Matt Dubins



More information about the Python-list mailing list