I'm new to python, and have been having trouble with regex. I want to use regex to only grab the pp. 53-63, and to be able to do so for multiple lines similar to this throughout a website. Can anyone help me with it.
<div class="src">
Foreign Affairs, Vol. 79, No. 4 (Jul. - Aug., 2000), pp. 53-63
</div>
so far, I've written it as:
urlpage = page.read()
outputh.write(urlpage)
matches = re.findall(r'(<div class="src">+[\d+,\d]+\s+Search\s+Results)', urlpage)
But I know this is wrong..