Run
import re str = 'We four guys, live at 2nd street of Malibeu. I had a cash of $248 in my pocket. I got a ticket with serial number 88796451-52.' # Search using regex x = re.findall('[0-9]+', str) print(x)
Output