Hi all I was wondering if it is possible in python to extract words from a string before a number.
For Example:
Hi my name is hazza 50 test test test
Hi hazza 60 test test test
hazza 50 test test test
I want to get the words before the number not after if it is possible.
Hi my name is hazza
Hi hazza
hazza
Regards Hazza
str.split()andstr.isdigit()along with aforloop.