Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@replace

Oct
356
2
there a way to use @replace to replace spaces in a string with another non-blank character?
 
It seems pretty straightforward if I'm not misunderstanding the question.

Code:
v:\> echo %@replace[ ,_,my dog has fleas]
my_dog_has_fleas
 
thank for the reply --- I did not think that parser would pick up the blank before the first comma --- thanks
 
Be careful, though. It will also pick up 2 or more spaces before the first comma.
 

Similar threads

Back
Top