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

Problems after upgrading to Sierra or High Sierra? Try these steps
Problems after upgrading to NeoOffice 2017? Try these steps
Download or installation problems? Try these steps


Support
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice
· Download latest patch
· User Guide
· User Guide Volume 2


RSS Feeds
· Announcements Only
· All Posts


  
NeoOffice :: View topic - Replace with a return character
 SearchSearch   ProfileProfile   Log inLog in 

Replace with a return character
 
Post new topic   Reply to topic    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 Reply with quote

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
View user's profile Send private message
Luke
Captain


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

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

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
View user's profile Send private message
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: Reply with quote

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
View user's profile Send private message AIM Address
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

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

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
View user's profile Send private message Visit poster's website
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11692
Location: California, USA

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

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
View user's profile Send private message Visit poster's website
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

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

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    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.
Page Generation: 0.02 Seconds