Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. select REGEXP_SUBSTR(str, '[[:alnum:].+]+@gmail.com', 1, level) as substr
  2. from (select ' John@yahoo.co.in , Jacob.foo@gmail.com, Bob@rediff.com,Lisa@abc.com, sam@gmail.com , sam.bar+stackoverflow@gmail.com, rita@yahoo.com, foobar ' as str
  3. from DUAL)
  4. connect by level <= LENGTH(REGEXP_REPLACE(str, '[^,]+')) + 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement