I need to update some links in my database that look like this:
<a href="http://www.domain.com.au/PDF/Rapidvite/Action_K_Salts.pdf">http://www.domain.com.au/PDF/Rapidvite/Accelerator_Oil.pdf</a>
<a href="http://www.domain.com.au/PDF/Rapidvite/Action_K_Salts.pdf">http://www.domain.com.au/PDF/Rapidvite/Accelerator_Oil.pdf</a>
And I need to replace the text with 'View PDF' (without the quotes) whilst keeping the href so that they look like this
<a href="http://www.domain.com.au/PDF/Rapidvite/Action_K_Salts.pdf">View PDF</a>
<a href="http://www.domain.com.au/PDF/Rapidvite/Action_K_Salts.pdf">View PDF</a>
Here is my wild stab in the dark - very new to MySQL
UPDATE `ayfryvrxb2_postmeta` SET meta_value = replace(meta_value, '.pdf">%%</a>', '.pdf">View PDF</a>"');