fpefpe Oct 356 2 May 7, 2023 #1 there a way to use @replace to replace spaces in a string with another non-blank character?
vefatica May 12,935 171 May 7, 2023 #2 It seems pretty straightforward if I'm not misunderstanding the question. Code: v:\> echo %@replace[ ,_,my dog has fleas] my_dog_has_fleas
It seems pretty straightforward if I'm not misunderstanding the question. Code: v:\> echo %@replace[ ,_,my dog has fleas] my_dog_has_fleas
fpefpe Oct 356 2 May 7, 2023 #3 thank for the reply --- I did not think that parser would pick up the blank before the first comma --- thanks
thank for the reply --- I did not think that parser would pick up the blank before the first comma --- thanks
vefatica May 12,935 171 May 7, 2023 #4 Be careful, though. It will also pick up 2 or more spaces before the first comma.