PHP wizard needed

Travis Roy travis at scootz.net
Wed Oct 27 15:01:01 EDT 2004


Exactly what I was looking for. Thank you.

> Travis Roy <travis at scootz.net> writes:
> 
> 
>>The html is a report for our customers.. I want to grab the 95th
>>percentile number..
>>
>>	<TR>
>>
>>		<TD WIDTH="170">95th Percentile:</TD>
>>
>>		<TD>9.88 Kbits/second</TD>
>>
>>		<TD WIDTH="350"></TD>
>>
>>	</TR>
> 
> 
> I would snarf this thusly:
> 
>   perl -ln -0777 -e '/95th Percentile:.*?(\d+\.\d+\s+Kbits\/second)/s; print $1;' <your-file.html
> 
> Regards,
> 
> --kevin




More information about the gnhlug-discuss mailing list