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

m
→‎{{header|langur}}: replace deprecated ZLS token with ""
m (simplification for OCaml)
m (→‎{{header|langur}}: replace deprecated ZLS token with "")
Line 1,414:
 
writeln "original : ", .str
writeln "without ctrl chars: ", replace(.str, RE/\p{Cc}/, ZLS"")
writeln "print ASCII only : ", replace(.str, re/[^ -~]/, ZLS"")</syntaxhighlight>
 
{{out}}
890

edits