<?xml version="1.0" encoding="windows-1252"?>
<node id="164831" title="How do I remove control characters?" created="2002-05-07 17:30:45" updated="2005-08-12 11:29:08">
<type id="1857">
categorized question</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
&lt;p&gt;I have a korn shell at work that strips all the control characters (octal 041-176). I'm trying to write a job in perl to do the same to do some speed comparisons.
&lt;/p&gt;

My question is, how do I specify to sub a range of octal values to a space (default)?&lt;br&gt;

something like &lt;br&gt;
&lt;code&gt;s/!(octal value 041-176)/ /g&lt;/code&gt;&lt;br&gt;

&lt;!--
Any help is appreciated.
--&gt;</field>
<field name="parent_node">
1835</field>
</data>
</node>
