Monday, December 19, 2022

Re: Atom and Substitute carraige return only in part of string

Thanks !

Le dimanche 18 décembre 2022 à 14:39:23 UTC+1, xigb...@gmail.com a écrit :
:s/\zs"[^"]\+"\ze/replace_string_here/g

On Sun, Dec 18, 2022 at 11:55 AM N i c o l a s <niva...@gmail.com> wrote:
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


--
--
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.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/62d1cb1f-0c41-4716-a658-90264b811b13n%40googlegroups.com.

No comments: