extract dates from string - oracle sql syntax

i have a string in a column called tbl_str. Here is an example of the content:

Confirm Home Visit - Warning Date: 17/09/2013 - Due Date: 19/09/2013

I need some sql to extract the two dates from the string. The two dates always follow the text:

Warning Date:
Due Date:

I've attached an example of the current output and the output i need.

Any help is appreciated
example.xlsx
tonMachine100Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Try regexp_substr.

Here is the test case I used:
drop table tab1 purge;
create table tab1(col1 varchar2(150));

insert into tab1 values('Letter Received from SEN - Warning Date: 15/08/2013 - Due Date: 15/08/2013');
insert into tab1 values('Letter Received from SEN - Warning Date: 22/08/2013 - Due Date: 22/08/2013');
insert into tab1 values('Confirm Home Visit - Warning Date: 17/09/2013 - Due Date: 19/09/2013');
insert into tab1 values('Statement Panel Meeting (If Yellow Sticker) - Warning Date: 15/11/2010 - Due Date: 29/11/2010');
insert into tab1 values('Letter Received from SEN - Warning Date: 16/09/2013 - Due Date: 16/09/2013');
insert into tab1 values('Letter Received from SEN - Warning Date: 02/09/2013 - Due Date: 02/09/2013');
insert into tab1 values('Statement Panel Meeting (If Yellow Sticker) - Warning Date: 24/12/2013 - Due Date: 07/01/2014');
insert into tab1 values('Advice Sent - Warning Date: 23/09/2013 - Due Date: 14/10/2013');
insert into tab1 values('Advice Sent - Warning Date: 11/10/2013 - Due Date: 01/11/2013');
insert into tab1 values('Statement Panel Meeting (If Yellow Sticker) - Warning Date: 25/12/2013 - Due Date: 08/01/2014');
commit;

select
	to_date(regexp_substr(col1,'[0-9]{2}/[0-9]{2}/[0-9]{4}',1,1),'DD/MM/YYYY') tbl_date1,
	to_date(regexp_substr(col1,'[0-9]{2}/[0-9]{2}/[0-9]{4}',1,2),'DD/MM/YYYY') tbl_date2
from tab1;

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.