deliciousbrains / better-search-replace

A simple plugin for updating URLs or other text in a database.
https://bettersearchreplace.com
GNU General Public License v3.0
89 stars 36 forks source link

How to find encoded text #43

Open MarceloPedra opened 6 years ago

MarceloPedra commented 6 years ago

If in the search field I input something like %2Fanystring%2F, it will search for /anystring/, literally, and some plugins like Visual Composer use to encode URLs in the content to improve security. Having said that, your plugin will never find %2Fanystring%2F because it really searches for /anystring/.

So, is there any workaround to this? Can I use some regex? Please advice

MarceloPedra commented 6 years ago

Absolutely not elegant, but I realized that if you want to replace %2Fanystring%2F for / , then you can replace 2Fanystring% for an empty nothing ;) Hope this dumb trick may help others.