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 13:12:33 -0500
Message-ID: <6a959ef30704131112l3585c312q9039e1b4141ccd8f@mail.gmail.com>


On 4/13/07, dd yakkali <dd.yakkali_at_gmail.com> wrote:
>
> I am trying to find the records where there are non printable characters,
> i am not having success with it
>
>
> select
> * from njcrc .tblprogram where REGEXP_INSTR(description,'[[:cntrl:]]') >0;
>
>
>
> Above sql pulls records where there are no "non printable" characters.
>
> Can any point me to an alternate way achieving this or let me know what am
> i doing wrong.
>
>
>
> Thanks
>
> Deen
>

how about this:
select regexp_replace(string,'[^[:cntrl:]]') from dual; --returns just control characters.

-Madhu S

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Apr 13 2007 - 13:12:33 CDT

Original text of this message

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