Link to home
Start Free TrialLog in
Avatar of hc2342uhxx3vw36x96hq
hc2342uhxx3vw36x96hqFlag for United States of America

asked on

Oracle Regular Expression

I need to select, from an Oracle table, only the rows in which the column GOOFY contains AT LEAST one character different from:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
and space

How can I achieve this?
Avatar of Shinesh Premrajan
Shinesh Premrajan
Flag of India image

select * from tablename where regexp_like (goofy, '[0-9a-z]+','i');

Hope this helps
Avatar of Sean Stuber
Sean Stuber

try these

regexp_like(goofy,'[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ]');

or

regexp_like(goofy,'[^a-zA-Z0-9 ]')
ASKER CERTIFIED SOLUTION
Avatar of Sean Stuber
Sean Stuber

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hc2342uhxx3vw36x96hq

ASKER

Thank you very much for your kind cooperation!