I am using Python to extract some data from the Patent Office. I would like to use a regular expression to extract the first claim from the claim text. The text string will begin with "1." include any number of letters, digits, symbols, up to "2." but not including the "2." What regular expression for Python would match the text from "1." up to but not including "2."?
I tried
p=re.compile(r"/.+?(?=2)/")
and then ran a search using that object against the text string but received "None".