MatthewWoodward
Senior Member
- Aug 31, 2012
- 997
- 1,728
Hey,
I am wondering if anyone can help me construct a quick mysql query to remove some data en masse.
Here are some example links from posts & pages bolding the bits I want to remove in 1 swift query-
As you can see there are some variance in the links, sometimes elements are in a differnet order, sometimes there is a custom class etc
Is there a SQL query I could execute that would remove all of the bold onclick="" elements across all posts/pages in one swoop rather than me manually editing around 1500 links?
Thanks
I am wondering if anyone can help me construct a quick mysql query to remove some data en masse.
Here are some example links from posts & pages bolding the bits I want to remove in 1 swift query-
Code:
<a href="http://www.matthewwoodward.co.uk/get/social-network-auto-poster/" rel="nofollow" [B]onClick="_gaq.push(['_trackEvent', 'Affiliate', 'SocialNetworkAutoPoster', '/income-report/monthly-income-growth-traffic-report-january-2015/',, false]);"[/B] target="_blank">Social Network Auto Poster</a>
<li><strong><a href="http://www.matthewwoodward.co.uk/tips/download-private-seo-tool-free-rankcracker/" [B]onClick="_gaq.push(['_trackEvent', 'Affiliate', 'RankCracker', '/income-report/monthly-income-growth-traffic-report-january-2015/',, false]);"[/B] rel="nofollow" target="_blank">RankCracker</a></strong> - $139.13</li>
<a href="/SEOPowerSuite" [B]onClick="_gaq.push(['_trackEvent', 'Affiliate', 'SEOPowerSuite', '/tools-of-the-trade/',, false]);"[/B] rel="nofollow" target="_blank" class="recommend"><strong>SEO Powersuite (Limited free version available)</strong></a>
<a [B]onClick="_gaq.push(['_trackEvent', 'Affiliate', 'BuyProxies', '/tools-of-the-trade/',, false]);"[/B] href="/BuyProxies" rel="nofollow" target="_blank" class="recommend"><strong>Buyproxies</strong></a>
As you can see there are some variance in the links, sometimes elements are in a differnet order, sometimes there is a custom class etc
Is there a SQL query I could execute that would remove all of the bold onclick="" elements across all posts/pages in one swoop rather than me manually editing around 1500 links?
Thanks