nvivek has asked for the wisdom of the Perl Monks concerning the following question:
Dear All,
I need to convert a non-printable characters to printable characters in my perl program. I am able to find non-printable characters by following regular expression.
if($string=~/[\x00-\x1F]+/) { # here, I want to replace the non-printable characters by printable ch +aracters which shouldn't cause any problem to XML::Writer emptyTag fu +nction. }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex to convert non-printable to printable char
by CountZero (Bishop) on Aug 18, 2012 at 06:49 UTC | |
Re: Regex to convert non-printable to printable char
by tobyink (Canon) on Aug 18, 2012 at 06:52 UTC | |
Re: Regex to convert non-printable to printable char
by BillKSmith (Monsignor) on Aug 18, 2012 at 15:09 UTC | |
Re: Regex to convert non-printable to printable char
by Anonymous Monk on Aug 18, 2012 at 06:29 UTC | |
Re: Regex to convert non-printable to printable char
by GlitchMr (Sexton) on Aug 22, 2012 at 10:04 UTC |
Back to
Seekers of Perl Wisdom