Replace TAGS and SHORTCODES with Search RegEx WP plugin

Search RegEx is a useful plugin, provided you are familiar with regular expressions. In the examples below I’m showing how you can replace all occurences of some shortcode or tag.

Let’s say you have the shortcode [yourshortcode thevalue=”several values”]. Since “several values” can be whatever, you need a regular expression to include any possible value.

Here is an expression you can use (try it, before you actually use it, even make a backup of your database):

|\[yourshortcode theval.*.\"\]|

Here is an expression you can use with Search RegEx to replace a tag (an iframe tag in this example):

|<iframe src="https://TheAddressYouWantToClean.*.</iframe>|