Anonymous user
Strip control codes and extended characters from a string: Difference between revisions
Strip control codes and extended characters from a string (view source)
Revision as of 22:01, 26 January 2012
, 12 years ago→{{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}}==
|