Re: Parsing an html line and pulling out only numbers that meet a certain criteria

2013-09-12 Thread Dave Angel
On 11/9/2013 23:03, Cory Mottice wrote: > I am using line.rfind to parse a particular line of html code. For example, > this is the line of html code I am parsing: > > 79° class="low">Lo 56° > > and this is the code I use to split the line to (in this case) pull out the > '79'. > > position0 = l

Re: Parsing an html line and pulling out only numbers that meet a certain criteria

2013-09-11 Thread John Gordon
In Cory Mottice writes: > I am using line.rfind to parse a particular line of html code. For example, > this is the line of html code I am parsing: > 79° class="low">Lo 56° > and this is the code I use to split the line to (in this case) pull out the > '79'. > position0 = line.rfind('{}'.f

Parsing an html line and pulling out only numbers that meet a certain criteria

2013-09-11 Thread Cory Mottice
I am using line.rfind to parse a particular line of html code. For example, this is the line of html code I am parsing: 79°Lo 56° and this is the code I use to split the line to (in this case) pull out the '79'. position0 = line.rfind('{}'.format(date1.strftime("%a"))) if position0 > 0 :