Tag Archive for: regular expressions

How to update links in a WordPress database using regular expressions

Recently, while reviewing the database of my blog, I found out that the ‘Broken Link Checker‘ plugin sometimes has troubles finding broken internal links in the database of my WordPress installation.
Fortunately for me the links I needed to update could be updated using regular expressions so, instead of using a plugin like ‘Velvet Blues Update URLs‘, I could fix them using regular expression functions directly in the database. I leave here a short guide and links to help you if you find yourself in a similar situation.
Read More