I am trying to parse a where clause in a string to return the name of the lookup_type. The where clause could be anything.
This is what I currently have:
select regexp_substr('where lookup_type = ''THE MILK'' ', 'lookup_type(\s*)=(\s*)''(^''*)''')
from dual
For some reason this does not work. Also how can I only return THE MILK from the regex?