In the following string:
s = '>foo</a> Start >bar</a> >baz</a>'
I want to extract the first value that comes between > and </a> after start, which is bar.
The following scripts do the job separately, but I don't know how to merge them.
regexp = re.compile("Start(.*)$")
output = regexp.search(s).group(1)
output = re.search('>(.*?)</a>', s).group(1)
r"Start[^>]*>(.*?)</a>"orr"(?s)Start.*?>([^<]*)</a>"