PHP Classes

This is a good idea but not very fool proof.

Recommend this page to a friend!

      Google - Did You Mean  >  All threads  >  This is a good idea but not very...  >  (Un) Subscribe thread alerts  
Subject:This is a good idea but not very...
Summary:Package rating comment
Messages:1
Author:Michael Strelan
Date:2008-06-02 03:44:33
 

Michael Strelan rated this package as follows:

Utility: Sufficient
Consistency: Sufficient

  1. This is a good idea but not very...   Reply   Report abuse  
Picture of Michael Strelan Michael Strelan - 2008-06-02 03:44:33
This is a good idea but not very fool proof. If Google decided to change something minor in their layout it could easily break. For example the <font> tag.

I think the regular expression should be rewritten to search for the contents of <div id=res> and then strip out any tags that isn't an <a> tag then return the contents of the <a>. At the moment it relies on the font tag being set to that red colour Google uses.