I am using Oracle 11G and need help in obtaining the string directly after a string keyword. In this case I have a table called STRING_HELP with a column called STRING_NAME with the following rows:
STRING_NAME
‘Help me Please’;
‘Will you please help me I would appreciate it’;
So I’m only looking to get the strings ‘Please’ and ‘I’ from these two rows since that is what directly follows ‘me’ in both rows.
I have been trying to experiment using REGEXP_SUBSTRING, REGEXP_REPLACE but I haven’t been able to get the string directly after the word me. I would like two different answers please. How do I get the string directly after me if I know everything is space delimited? I would greatly appreciate any help, thanks.
You could use: