I have a column which has record in below specific format :-
ParamName1+ParamVal1;ParamName2+ParamVal2;ParamName3+ParamVal3;
Currently I am using below query logic but this logic also brings the value for which the part of the search ParamName matches :-
TRIM(REGEXP_REPLACE(REGEXP_SUBSTR(TO_CHAR(ITEM_ATRS_LIST),'ID\+[^;]*'),'ID\+',''))
For example if I have value EmpID+1234;Name+ABCD;Age+21;
using query
TRIM(REGEXP_REPLACE(REGEXP_SUBSTR(TO_CHAR(ITEM_ATRS_LIST), 'ID\+[^;]*'),'ID\ + ',''))
gives us value 1234 but we want NULL since the ParamName ID is not present.
Do we have any way to bring value which matches completely with the search paramName ?