I need a regexp that's combined with regexp_substr() would give me the word being between two other specified words.
Example:
source_string => 'First Middle Last'
substring varchar2(100);
substring := regexp_substr(source_string, 'First (.*) Last'); <===
this doesn't work :(.
dbms_output.put_line(substring) ===> output should be: 'Middle'
I know it looks simple and to be honest, at the beginning I thought the same. But now after spending about 3h for searching for a solution I give up...
regexp_replace()part of the problem statement, and not part of one possible solution? Do you have to use regular expressions and ignore all solutions that do not use regular expressions?