Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to find non printable characters in a column using regexp

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

From: Madhu Sreeram <madhusreeram_at_gmail.com>
Date: Fri, 13 Apr 2007 15:56:02 -0500
Message-ID: <6a959ef30704131356k5664a37teb4ffbde301bc3cc@mail.gmail.com>


On 4/13/07, dd yakkali <dd.yakkali_at_gmail.com> 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

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Apr 13 2007 - 15:56:02 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US