I think there are two parts to this question and I am sure lots I am missing. I am hoping an example will help me<div>I have a html doc that I am trying to use regular expressions to get a value out of.</div><div>here is an example or the line</div>
<div><td colspan='2'>Parcel ID: 39-034-15-009 </td></div><div>I want to get the number "39-034-15-009" after "Parcel ID:" The number will be different each time but always the same format.</div>
<div>I think I can match "Parcel ID:" but not sure how to get the number after. "Parcel ID:" only occurs once in the document.</div><div><br></div><div><div>is this how i need to start?<br></div><div>pid = re.compile('Parcel ID: ')</div>
<div><br></div><div>Basically I am completely lost and am not finding examples I find helpful.</div><div><br></div><div>I am getting the html using myurl=urllib.urlopen(). </div><div>Can I use RE like this</div><div>thenum=pid.match(myurl) </div>
</div><div><br></div><div><br></div><div>I think the two key things I need to know are</div><div>1, how do I get the text after a match?</div><div>2, when I use myurl=urllib.urlopen(http://.......). can I use the myurl as the string in a RE, thenum=pid.match(myurl)</div>
<div><br><div>Thanks<br>Vincent<br><br>
</div></div>