Thread Starter
ximin
(@ximin)
does this means that I cannot search and replace with newline?
I was just about to ask this myself, i’m trying to get rid of a newline myself and there’s no way of doing it as search & replace doesn’t find it.
Hello, I’m having the same issue. I need to massively replace hundreds of AdSense blocks with a shortcode and since it won’t work when using the plugin as is, I tried converting the input search_for into a textarea, but just found all of the occurrences of the html block like in the original plugin version, which are not all of the occurrences 🙁
Image: https://drive.google.com/file/d/0B4ZIdz9VEIQGdkpBQ3o0eWFaSms/view?usp=drivesdk
Any ideas? May this count as a feature request?
UPDATE: I made it work! I’ll do a pull request so the modification can be evaluated 😉
Marcelo Pedra is a legend! Thank you for being AWESOME!
…and the answer is?
Please share it with the community.
Hello guys. The people at Delicious Brains disregarded my commit, but it works and I have tested it in a couple sites. Their loss.
Feel free to fork it and use it your way from here:
https://github.com/MarceloPedra/better-search-replace/commit/5f2f4f8c0b48efc1ac56cc593f05dc37d753335a
Thanks Marcelo! Will give it a try
@hafman: Of course, note that my fix is within an old branch. So do not download mine. Instead, you should be able to apply a similar patch to the latest current version.
Best regards