Welcome!

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

SignUp Now!

Replace a space with a + sign in a string

Aug
2,799
144
ReplaceText allows me to replace a space with a + sign in a string.

With clipboard contents of
Code:
19.62 19.95 19.64 19.90

Code:
R:\>replacetext clip: /C /R:\x20:\x2B
19.62+19.95+19.64+19.90

ReplaceText also allows input from STDIN
Code:
R:\>replacetext /C /R:\x20:\x2B
Reading text from the console: (^Z ends)
19.62 19.95 19.64 19.90
^Z
19.62+19.95+19.64+19.90

A handy little command for quick changes in a string.

Joe
 
Since you've directed my attention to that forgotten /C option... I've decided to change it in the next build, to use the same handler as CHARENCODING. Having two different handlers, with different behaviors, is nuts.

\xnnn will continue to be hexadecimal, but \nnn will be octal. On the bright side, you'll gain \b \e \n \t for backspace, escape, newline, tab, and so on.
 
Back
Top