i want to extract a word out of a string based on what character it got, for Example:
string: I WANT TO EAT cheese in zeven11
Extract all words with 11 in it
extracted: Zeven11
i try find() method but then i only get a on number of the word
Maybe something like this:
for word in string.split():
if '11' in word: print(word.capitalize()) # first letter?
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments