Talk:Strip control codes and extended characters from a string: Difference between revisions

Content added Content deleted
m (Correct language markup and add signature to previous edit.)
Line 46: Line 46:
/*stick a fork in it, we're all done. */
/*stick a fork in it, we're all done. */
</lang>
</lang>
From this, I cannot see that there is any change with removing the control characters from the string specified. It could be done in one line: <code>yyy = space(translate(translate(xxx),,below),,above))</code>
From this, I cannot see that there is any change with removing the control characters from the string specified. It could be done in one line: <code>yyy = space(translate(translate(xxx,,below),,above))</code>
I post this not as a "better" way but because, at least in the REXX implementation I used, the example code printed the old and new exactly the same with both printing the control characters.
I post this not as a "better" way but because, at least in the REXX implementation I used, the example code printed the old and new exactly the same with both printing the control characters.