Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Replace with a return character
Replace with a return character
 
   NeoOffice Forum Index -> NeoOffice Testing
View previous topic :: View next topic  
Author Message
Strait
Blue Pill


Joined: May 12, 2005
Posts: 1

PostPosted: Thu May 12, 2005 1:32 am    Post subject: Replace with a return character

Patrick,
I've downloaded last version of NeoOffice few days ago. I create a new text document in NeoOffice and I tried to replace a character with return or tab character in find and replace dialog. I'm not able to do it: is it really so?

Jose
Back to top
Luke
Captain


Joined: Sep 08, 2003
Posts: 63
Location: Teesside, UK

PostPosted: Thu May 12, 2005 2:39 am    Post subject:

Hi Jose,

you wrote
Quote:
I create a new text document in NeoOffice and I tried to replace a character with return or tab character in find and replace dialog. I'm not able to do it: is it really so?

In the search and replace dialog, you need to check the regular expressions box. Then you can use \t to mean a tab. Look up regular expressions in the help for a full list of codes.

Luke
Back to top
GibHenry
Councilperson


Joined: Jun 20, 2003
Posts: 104
Location: Birmingham, Alabama; and Amelia (Terni), Italy

PostPosted: Sun May 15, 2005 3:30 pm    Post subject:

Luke wrote:
Hi Jose,

you wrote
Quote:
I create a new text document in NeoOffice and I tried to replace a character with return or tab character in find and replace dialog. I'm not able to do it: is it really so?

In the search and replace dialog, you need to check the regular expressions box. Then you can use \t to mean a tab. Look up regular expressions in the help for a full list of codes.

Luke

I've read all the stuff on regular expressions but cannot find a way to find or replace return characters...maybe because OOo doesn't use them? Maybe line feeds, vertical tabs, or something else instead of a simple CR?

Anyway, I'd sure like to be able to replace any single line break with a space, but can't do it...any ideas? \r is logical, but just replaces it with an "r"!!! Unfortunately, I also can't copy a return and paste it into the Find and Replace dialog. Sad Help! Cheers,

_________________
Gib Henry
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Sun May 15, 2005 5:33 pm    Post subject:

There's another, older discussion where we sorted this all out a couple of months ago. I don't have it bookmarked, and it's not in the wiki (though perhaps it should be, since it's so obtuse), but if you try searching, you should find it....

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sun May 15, 2005 6:09 pm    Post subject:

GibHenry wrote:
Anyway, I'd sure like to be able to replace any single line break with a space, but can't do it...any ideas? \r is logical, but just replaces it with an "r"!!! Unfortunately, I also can't copy a return and paste it into the Find and Replace dialog. Sad Help! Cheers,


Check the "Regular expressions" checkbox, put "$" in the "Search for" field, and " " in the "Replace with" field.

BTW, "$" is the regular expression symbol for "end of line". "\r" and "\n" are not regular expression symbols but are C programming language symbols which is why they don't work.

Patrick
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Sun May 15, 2005 8:49 pm    Post subject:

Here's the earlier thread, which had a little bit more info (plus Patrick's answer pretty much verbatim Smile)

I'll start a wiki article on this, but someone who understands this better than me should flesh it out....

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Testing All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.