Strip control codes and extended characters from a string: Difference between revisions
Content deleted Content added
Added Wren |
→{{header|Wren}}: More efficient. |
||
Line 2,109:
// strip extended characters as well
p = Pattern.new("[+1/c|+1/R]")
r = p.replaceAll(s, "")
System.print("%(r) -> length %(r.count)")
|