Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 904
  • Last Modified:

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?
0
hc2342uhxx3vw36x96hq
Asked:
hc2342uhxx3vw36x96hq
  • 2
1 Solution
 
Shinesh PremrajanTechnical ManagerCommented:
select * from tablename where regexp_like (goofy, '[0-9a-z]+','i');

Hope this helps
0
 
sdstuberCommented:
try these

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

or

regexp_like(goofy,'[^a-zA-Z0-9 ]')
0
 
sdstuberCommented:
shinuq,  

your expression will find strings that have at least one digit or letter.

the question asks to find strings with something OTHER than those characters or a space.
0
 
hc2342uhxx3vw36x96hqAuthor Commented:
Thank you very much for your kind cooperation!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now