Hi,

I'm trying to replace all occurences of   with a simple "space" character (" "):

   Find:  
   Replace:  

This seems impossible since the module complains: The field replace is required.. I'm considering this as a bug since the "Replace" field contains a character, even if it is "just" a space.

Thanks & greetings,
-asb

CommentFileSizeAuthor
#1 340876_node_find_replace.patch571 bytesassersamak

Comments

assersamak’s picture

StatusFileSize
new571 bytes

Hi.
This patch should allow you to replace any string with a space.
Hope this helps

regx’s picture

Thanks!, this looks fine so I will get it in the dev branch ASAP.
Just an extra little note, the dev branch now supports find / replace for file paths which makes it easy to switch between Drupal secure and standard file mechanism.
I haven't released it yet because I don't have any unit test for this module (which I most definitely should). Hard to get my self to write unit test for my stuff after writing Drupal code all day.

Anyway, thanks for the patch. This is only the second patch I have received. I have never had the need to replace using just a space so I most likely wouldn't have tested or found this anyways.

asb’s picture

Status: Active » Fixed

Hi Asser,

> This patch should allow you to replace any string with a space.

The patch applies cleanly. Running the replace operation mentioned above, the module outputs:

70 node body revisions replaced

Very nice - thank you very much!

Greetings from Berlin, -asb (setting status to "fixed")

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.