Re: How to find non printable characters in a column using regexp

  • From: "Madhu Sreeram" <madhusreeram@xxxxxxxxx>
  • To: dd.yakkali@xxxxxxxxx
  • Date: Fri, 13 Apr 2007 15:56:02 -0500

On 4/13/07, dd yakkali <dd.yakkali@xxxxxxxxx> wrote:

Madhu,

thanks for the response, for some reason, it is not working for me. Do you
know what is meant by non printable characters?

what i am looking for is any character outside of ascii value 32 and ascii
value 126

I thought by control they meant that.

Here is what I found on the web


select count(*) from
njcrc.tblprogram where replace(translate(lower(description ),'
abcdefghijklmnopqrstuvwxyz1234567890_-+=()*&^%$#@!~`;:}{][|\/?.,><"'''||chr(
10)||chr( 13)||chr(9 ),'X'),'X' ,'') is not null;



control is not the same as non-printable but not sure where they differ. If
you are looking specifically for non-print, there is a  [:print:],  so  the
equiv would be:

select regexp_replace(string, '[[:print:]]') from dual; --to give only
non-print characters.

-Madhu S

Other related posts: