I want to search a string using a delimiter which is a combination of 2 or more characters.
Please find the query i tried below:
select REGEXP_SUBSTR('123$@45$6$@789','[^$@]+',1,2) from dual
Required Output:
45$6
Output:
45
I understand it is easily possible using user defined functions [with INSTR+SUBSTR] however I am looking for an answer & explanation with REGEXP_SUBSTR.
Thanks in advance.