Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python find multiple matches in string

a_string = "A string is more than its parts!"
matches = ["more", "wholesome", "milk"]

if any(x in a_string for x in matches):
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #find #multiple #matches #string
ADD COMMENT
Topic
Name
4+2 =