Replace TAGS and SHORTCODES using the Search RegEx WordPress 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>|


Report a problem on this page / Make a Request
Get The Power & Follow! don't miss   : :   Sleeper   Favorite Launcher   Savy   Gadgetarian
Fling   Power Copy   Windows Rule   SearchALL Gadget   Amazon Gadget