• My client unintentionally pastes non-breaking spaces into his WordPress pages, so I want to find #\x{A0}# (non-breaking space) and replace with ” ” (regular space). The Search button works, and the Replace button works, showing a preview of what looks like spaces being replaced with spaces. However, when I click Replace & Save, while it says “200 occurrences replaced”, no pages have actually been updated. I can run the Search again and it will still find 200 occurrences. I then tried replacing #\x{A0}# with ZZ38ZZ and again it said occurrences replaced but nothing had changed. How can I replace all these non-speaking spaces with something else?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I nothin7,
    After clic on “Search” button, it seems that “Search pattern” field avoids space characters (like &nbsp and maybe #\x{A0}#) so just before Replace & Save I would try ti type again #\x{A0}# in “Search pattern” field. It has worked for me with &nbsp.
    Good luck!

    • This reply was modified 7 years, 8 months ago by Francks.
    Thread Starter Zade

    (@nothin7)

    Unfortunately, the Replace & Save button has no effect, even though #\x{A0}# still appears in the Search pattern field.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Regex preview works but database not updated’ is closed to new replies.