Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to find non printable characters in a column using regexp
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-lReceived on Fri Apr 13 2007 - 15:56:02 CDT
![]() |
![]() |