Russell Butler wrote:
Allen wrote:
I have a rather large log file I need to get into a spreadsheet. Most
I can handle just fine with search and replace but one search I can't
 figure out, the paragraph marker at the end of a line. In Word it is
^p. What is it in OO? The only thing I find is, "\n in the Search for
text box stands for a line break that was inserted with the
Shift+Enter key combination." I want to replace one or more spaces
and the "enter" paragraph marker with just the paragraph marker. I
know \n in the "Replace with" will do that part, bu I don't know how
to find the regular paragraph enter marker. I can't just replace
spaces with nothing as that would make a jumble of the words in about
5000 lines.

The file is about 30,000 lines so I really don't want to do it by
hand and I'd rather learn how to do it in OO instead of import into
Word to do it

Thanks,

Allen

Hi Allen

In your search dialogue, click on "More Options" and select "Regular Expressions"

If you look in the Help files for Regular Expressions you will see characters such as $, ^$ and ^. for various aspects of paragraph searches. You should be able to use one or more of these to do what you want.

Russell,

I tried all of these and none of them do what I need which is to combine a character and the paragraph marker itself and replace it with the paragraph marker alone.

$ according to the Regular Expressions list only finds things at the end of the paragraph, not the marker. "Only finds the search term if the term appears at the end of a paragraph. Special objects such as empty fields or character-anchored frames at the end of a paragraph are ignored. Example: "Peter$"."

^$ according to the Regular Expressions list only "Finds an empty paragraph."

^. according to the Regular Expressions list only "Finds the first character of a paragraph."

I am unable to locate an expression that would allow me to find the marker itself like ^p does in Word. It is this I need.

Thanks

Allen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to