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

m
→‎REXX faster version: minor correction
m (→‎REXX faster version: minor correction)
Line 1,603:
It also shows a different way of performing concatenations (without using abutments,   and a way to split a long literal (character) string.
 
Because there are   (or should be)   lessfewer unwanted characters than wanted characters, this version is faster.
<lang rexx>/*REXX program strips all "control codes" from a character string (ASCII or EBCDIC). */
x= 'string of ☺☻♥♦⌂, may include control characters and other ♫☼§►↔◄░▒▓█┌┴┐±÷²¬└┬┘ilk.'
2,295

edits