I have a string which is delimited by #
and I want the third set / cell in the string.
For example:
select REGEXP_SUBSTR( 'abc#def##########xyz','[^#]+', 1,1,null) from dual;
Outputs: abc
select REGEXP_SUBSTR( 'abc#def##########xyz','[^#]+', 1,2,null) from dual;
Outputs: def
However
select REGEXP_SUBSTR( 'abc#def##########xyz','[^#]+', 1,3,null) from dual;
Outputs: xyz
But what I expect is to get null
since the third cell between ##
is empty.