[Solved] Find & Replace non-breaking spaces

Discuss the word processor
Post Reply
bobras
Posts: 2
Joined: Fri Oct 09, 2009 7:38 pm

[Solved] Find & Replace non-breaking spaces

Post by bobras »

Is there a way to find and replace non-breaking spaces?
Last edited by Hagar Delest on Fri Oct 09, 2009 8:41 pm, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.1.1 on Windows XP
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Find & Replace non-breaking spaces

Post by acknak »

I can't type a non-breaking space in the "Search for" box, but I can copy/paste one there from the text. The search seems to work just fine from there.

If that doesn't work for you (I think Windows can be more restrictive about what characters you can enter in some cases), you can search by the character code. Enter \x00a0 in the "Search for" box and make sure "Regular expressions" is on under "Options".
AOO4/LO5 • Linux • Fedora 23
bobras
Posts: 2
Joined: Fri Oct 09, 2009 7:38 pm

Re: Find & Replace non-breaking spaces

Post by bobras »

Thank you acknak. That works fine.
bobras
OpenOffice 3.1.1 on Windows XP
vasa1
Volunteer
Posts: 261
Joined: Sat Dec 26, 2009 1:20 pm
Location: Bombay

Re: Find & Replace non-breaking spaces

Post by vasa1 »

acknak wrote:I can't type a non-breaking space in the "Search for" box, but I can copy/paste one there from the text. The search seems to work just fine from there.

If that doesn't work for you (I think Windows can be more restrictive about what characters you can enter in some cases), you can search by the character code. Enter \x00a0 in the "Search for" box and make sure "Regular expressions" is on under "Options".
Enter \x00a0 in the "Search for" box and make sure "Regular expressions" is on under "Options"

I was having the same problem and your solution worked perfectly :super:
LibreOffice 5.2.1.2 on Lubuntu 16.04 (Openbox)
johnaaronrose
Posts: 3
Joined: Sun May 16, 2010 4:07 pm

Re: [Solved] Find & Replace non-breaking spaces

Post by johnaaronrose »

This does not work for me. I'm using LibreOffice 4.1.1.2 on Ubuntu Precise 64 bit.
Regards,
John
OpenOffice 3.2 on Ubuntu Lucid 10.04
User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: [Solved] Find & Replace non-breaking spaces

Post by RGB »

Since Apache OpenOffice 3.4 (and since LibreOffice 4.0, I think) you need to use \u00a0 instead: [UserGuide Draft]Introduction to Regular Expressions
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibreOffice
Post Reply