Just Code‎ > ‎

Regex to remove annoying google-url from google sites

posted Sep 9, 2009, 2:08 AM by Peter Henell   [ updated Sep 9, 2009, 4:47 AM ]
&sa=([A-Z]&[a-z]*=[\W0-9]*&[a-z]*=[A-Za-z0-9\-\_]*)*

matches
&sa=D&sntz=1&usg=AFrqEzfxvmSsafhk8zKGJzhDKS4RTLeRFg
in
<a href="http://www.google.com/url?q=http%3A%2F%2Fwww.dnrtv.com%2F&amp;sa=D&amp;sntz=1&amp;usg=AFrqEzfxvmSsafhk8zKGJzhDKS4RTLeRFg" target="_blank"> DNR TV</a>
Comments