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

→‎{{header|MATLAB}} / {{header|Octave}}: remove control codes from string
(→‎{{header|MATLAB}} / {{header|Octave}}: remove control codes from string)
Line 372:
^_`abcdefghijklmnopqrstuvwxyz{|}~</pre>
 
 
=={{header|MATLAB}} / {{header|Octave}}==
 
<lang MATLAB> function str = stripped(str)
str = str(31<str & str<127);
end; </lang>
 
=={{header|OCaml}}==
Anonymous user