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

Content added Content deleted
(→‎{{header|MATLAB}} / {{header|Octave}}: remove control codes from string)
Line 372: Line 372:
^_`abcdefghijklmnopqrstuvwxyz{|}~</pre>
^_`abcdefghijklmnopqrstuvwxyz{|}~</pre>



=={{header|MATLAB}} / {{header|Octave}}==

<lang MATLAB> function str = stripped(str)
str = str(31<str & str<127);
end; </lang>


=={{header|OCaml}}==
=={{header|OCaml}}==