3

I want to use a regular expression in Oracle 11g SQL to find records that do not match it. The regular expression is:

/([A-Z]{3})+([0-9])\w+/g

The SQL I want to use would be something like:

select
  stu_code
  ,stu_insc
from
  intuit.ins_stu
where
  stu_insc not like ('/([A-Z]{3})+([0-9])\w+/g')

Obviously I know the above is not right, so does anyone know how I do this? I do not have the rights to run any PL/SQL.

4
  • what is the target string you wanna match Commented Dec 17, 2014 at 14:40
  • @vks I'm trying to find records where stu_insc does not match the regular expression mentioned above Commented Dec 17, 2014 at 14:42
  • 1
    See REGEXP_LIKE Commented Dec 17, 2014 at 14:43
  • Have you tried google? first hit Commented Dec 17, 2014 at 14:44

1 Answer 1

4

On oracle you can try something along the lines of

select xyz
from theTable
where not regexp_like(mycolumn,pattern)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.