2025-03-30 02:31:26
select regexp_substr(regexp_substr('','a2=".*"'),'\w+',1,2) from dual
当a2=""时 结果为a3 求继续优化。
select regexp_substr(substr(regexp_substr('','(a2=".*" )|(a2=".*"/)'),5),'[[:alnum:]]+') from dual
结果:b2222,如无a2时,值null,如a2=“”时,值为null
select regexp_replace(regexp_substr('','(a2=".*" )|(a2=".*"/)'),'(a2=")|"','') from dual
结果:b2222,如无a2时,值null,如a2=“”时,值为""