I don\'t want to use string split because I have numbers 1-99, and a column of string that contain \'#/#\' somewhere in the text.
How can I write a regex to extract the
import re myString = "He got 10/19 questions right." oldnumber = re.findall('[0-9]+/', myString) #find one or more digits followed by a slash. newNumber = oldnumber[0].replace("/","") #get rid of the slash. print(newNumber) >>>10