Suppose that I have the folliwing string
string = "serial 7's 93-86-79-72-65 very slow, recall 3/3 "
Now, I want to find the set of numbers using regular expressions in Python. Note that the numbers must be preceded by "serial 7's" I have tried the following:
re.findall('(?<=serial 7\'s )(\d+, )', string)
re.findall('(?<=serial 7\'s )(\d+, )+', string)
Nothing seems to work. Note that there might be unknown number of integers we are trying to extract. I only want numbers with the specific pattern. Not other numbers that might be scattered within the text.
Expected output: ['93','86','79','72','65']