String parsing

HMS Surprise john at datavoiceint.com
Tue May 8 21:09:52 EDT 2007


The string below is a piece of a longer string of about 20000
characters returned from a web page. I need to isolate the number at
the end of the line containing 'LastUpdated'. I can find
'LastUpdated'  with .find but not sure about how to isolate the
number. 'LastUpdated' is guaranteed to occur only once. Would
appreciate it if one of you string parsing whizzes would take a stab
at it.

Thanks,

jh



<input type="hidden" name="RFP"		 		value="-1"/>
<!--<input type="hidden" name="EnteredBy"		value="johnxxxx"/>-->
<input type="hidden" name="EnteredBy"		value="john"/>
<input type="hidden" name="ServiceIndex"	value="1"/>
<input type="hidden" name="LastUpdated" 	value="1178658863"/>
<input type="hidden" name="NextPage" 		value="../active/active.php"/>
<input type="hidden" name="ExistingStatus"	value="10" ?>
<table width="98%" cellpadding="0" cellspacing="0" border="0"
align="center"




More information about the Python-list mailing list