[BUG] find & replace with \n
-
Trying to find & replace (extended search)
\n;;;;;;;;x;
with
;;;;;;;;x;on a text like:
IS_ROOT;Is ROOT;;;;;È ORIG
;;;;;;;;x;
IS_PREV;Is PREV;;;;;È PREC
;;;;;;;;x;
IS_FROM;Is FROM;;;;;È DI
;;;;;;;;x;won’t delete the Carriage Return moving back the “;;;;;;;;x;”.
Expected result:
IS_ROOT;Is ROOT;;;;;È ORIG;;;;;;;;x;
IS_PREV;Is PREV;;;;;È PREC;;;;;;;;x;
IS_FROM;Is FROM;;;;;È DI;;;;;;;;x; -
Works for me to produce your expected result.
On presumes with your usage of
\nthat your files are of Unix type?
Check your status bar forUnix (LF)to be sure.If they are of Windows type you end up with this:

Which I’m sure isn’t what you want.
-
@Luca-L-0 said in [BUG] find & replace with \n:
\n;;;;;;;;x;
Ran out of editing time.
You may want your Find expression to be
\r\n;;;;;;;;x;if you have Windows files.You may also want to read up on “line endings” if you aren’t well-versed.
EDIT: Earlier I said “On presumes” when I should have said “One presumes”
-
Correct! Thank you.
Indeed was a Win file (CR+LF) and works fine searching & replacing:
\r\n;;;;;;;;x;
to
;;;;;;;;x;
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login