I'm scraping values from web page html that looks like this:
location=1">MAIN BUILDING</a> : -25.49<br />
I'm successfully using Python's partition twice: once to save everything after the ID string MAIN BUILDING</a> :
and then again to save the part before <br />
Using partition twice doesn't seem too horrible. But is there a better way to do this? Seems like there ought to be a way to extract a string sandwiched between between two other strings in one step rather than two.