I want to write a simple regular expression in Python that extracts a number from HTML. The HTML sample is as follows:
Your number is 123
import re x = 'Your number is 123' re.search('(?<=Your number is )(\d+)',x).group(0)
this searches for the number that follows the 'Your number is' string