How do I go from A<CR><<LF>B<CR><LF> to 'A','B' ?
-
How to I quickly change (search/replace):
A<CR><LF>
B<CR><LF>
C<CR><LF>
Dto
‘A’,‘B’,‘C’,‘D’
?I have done it before using Ultra Edit, but I am new to N++.
Thank you! -
Hello @Jim-Biwer,
by using regular expressions and find/replace dialog.
CTRL+H
check regular expression (bottom left)find what:(.*)\r\n
replace with:‘\1’,(.)\r\n = you are looking for text which end with CRLF
(.) = holds the text without the eol chars
\1 = what (.*) returns
encased by quote and added a comma as you’ve told.It results in ‘A’,‘B’,‘C’,‘D’, so you need to delete the last comma manually.
Cheers
Claudia -
Thanks, I will give it a try.
-
Got it, works good. Thank you!
-
Yes, works great. Thank you.
-
In Ultra Edit, I would search for ^p and replace with ‘,’
Thanks again. Solved.
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