[users] Re: How to show paragraph breaks as a regular expression
Anthony Chilco wrote: ... with regular expressions turned on search for = $ replace with = xx99xx ... You have to be careful with this approach, as it combines all the text in the document into one long paragraph. Writer has a limit of about 64k characters in a single paragraph; if the combined text grows beyond that, the document will be corrupted and you will lose or garble some of the text. An alternative strategy which avoids this is: Search for: \.txt$ Find All Search for: $ Replace with: _x_ Options: Search current selection only Search for: \.txt_x_ Replace with: ; Or some variation thereof.
[users] Re: How to show paragraph breaks as a regular expression
Ed Smits wrote: > Tried that, it doesn't do what I need. To be specific, as an > example I want to convert the following text: > > sample1.txt > sample2.txt > sample3.txt > > into > > sample1; sample2; sample3 > > and doing a S&R for ".txt$" to be replaced with "; " > doesn't remove the breaks, just the .txt which is repladed with > "; " > > ie > sample1; > sample2; > sample3; > > etc. > > where am I going wrong? For find and replaces like this I use the macro in IannzFindReplace.sxw on http://homepages.paradise.net.nz/hillview/OOo/ It carried the above replacement out without problems. -- John [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]