Atom and Substitute carraige return only in part of string

5 views
Skip to first unread message

N i c o l a s

unread,
Dec 18, 2022, 6:55:49 AM12/18/22
to vim_use
Hi,

Getting this awfull string containing several carriage return, seome of them would to be substitute with space, seome others with nothing.

0.003^@99,"0;0;0^@0;0;0^@0;0;0^@0;0;0^@0;0;0^@0;0;0^@0;0;0^@0;0;0","0;0;0^@0;0;0^@0;0;0^@0;0;0^@0;0;0^@0;0;0^@0;0;0^@0;0;0",0.0,0.0,0.0,0.0001,0.003^@

Using atom, I search and fix part of string where carriage return need to be replaced by space : this is the atom pattern \zs,"[^"]\+"\ze


How to only substitute on these focused part of string ?
Thank you
N i c o l a s


Owajigbanam Ogbuluijah

unread,
Dec 18, 2022, 8:39:23 AM12/18/22
to vim...@googlegroups.com
:s/\zs"[^"]\+"\ze/replace_string_here/g

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ba410108-91e7-45ce-8327-f8b1d3860a34n%40googlegroups.com.

N i c o l a s

unread,
Dec 19, 2022, 1:39:06 PM12/19/22
to vim_use
Thanks !
Reply all
Reply to author
Forward
0 new messages