使用 PL/SQL,我如何删除句子,除了第一次出现的以单词开头的句子This product
?假设每个句子都以句点 ( .
) 结尾,并且每个句子都以大写字母开头;例如:
v_desc varchar2(500);
v_desc := 'This product is used. Product may make you wealthy. This product may appear red. This product is not new.';
我的尝试:
v_desc := regexp_replace(v_desc,'This product*{2,}','') ;
v_desc := regexp_replace(v_desc,'This product*{2,}*','') ;
期望的结果
v_desc := 'This product is used. Product may make you wealthy.';