I have strings searched by the form [a-z,A-Z,0-9]$, e.g., apple$, to$, etc.
I want to keep the words with a space char instead of the paragraph char $.
apple$
would be apple
,
to$
would be to
,
mat$
, mat
,
and so on and so forth, i.e., the result would be without the non-printing paragraph mark
at the end of the words that were earlier there.
How could I?
The editing was for Regina, who had difficulty understanding my requirements. Thanks, Regina, for pointing out!
This is possible by deleting one character from the end. But is there any better way?
Regina, please check with the text, Russell’s In Praise Of Idleness
I could have done it by changing empty para marks ^$ into something like !!! , then convert single paras into ‘one blank space’ and then reconverted the !!! into single para mark. But is there an elegant way?
For Mike:
Please don’t use confusing phrases. Return/Enter key creates ¶
, searched by $
is the paragraph-break, whereas Shift+Enter keys create line breaks displayed by ↵
. I had already posted the clerical solution above, but I needed an elegant solution.
Please download the file and activate the non-printing characters button ¶
and then peruse the file. Remember that the clerical solution is already posted above.
In Microsoft word there was one, called Find What Text
but I left using MsWord ten years back!
Sample was not required. I posted a summary of what I actually needed. Your and Regina’s questions made me extend my question via explanations.
Mike, your solution is incorrect. Look at my solution above! Would you like to edit your post?
Mike, again, have you checked your solution with the file? Does it work? Now I am giving you the real task, with the clue where the paragraphs were, here:
This was the reason for my first unedited post. How to remove those paragraph marks when there are no double paragraphs? Please note that this is just a sample file, and indeed it is a plain text file.
[Response to Mike’s 3rd edit]
No, Mike, you can’t rename file, since this is just a sample file (the real file has already been hand-edited: please refer to my reply to Regina) you can’t rename it, but keep it as odt file, and then follow your steps.
But my thanks is a common constant for your efforts.
[Response to Mike]
Mike, you said:
You just don’t want to listen. I still
don’t know what actual format your
real file is. If you are just clueless
about formats, or deliberately post
wrong-named files to confuse those who
try to help. However, you don’t take
time to stop and think. Even if you
just have an ODF…
My answer was a response to only these lines:
here is the exact sequence to do with
the file Toughening up.odt (that is
actually another plain text file,
again): Rename it to Toughening up.txt
Open LibreOffice Start Center,
File-Open, and choose Text - Choose
Encoding (*.txt) in File Type
drop-down list. Select and open the
Toughening up.txt. In ASCII Filter
Options dialog, choose CR & LF as
Paragraph break
[Response to Luppe]
You said:
In advance of another editing of your
ques … $$ is not searchable after
all. (Please note that \n has a
different meaning in ‘Replace With:’).
Yes, I admit, and I am sorry! I just posted it as a solution as I had already solved my problem manually without an appropriate solution. I did not put in much thought.
You can see the number of interactions I have already had without any solution, like an alternative to MsWord’s Find What Text
, that too, in 1997!
I believe the thread has become complicated and convoluted and there is a need to close the thread. I will wait for an appropriate solution at my emailbox with my same username at gmail dot com
Thanks, everyone!!!