Regex 当字符串作为绑定传递时,在运行时删除方括号的过程

Regex 当字符串作为绑定传递时,在运行时删除方括号的过程,regex,oracle,plsql,Regex,Oracle,Plsql,我有一个分割逗号分隔字符串的过程。 字符串将在运行时以[“”,“”]格式传递 我需要调用在运行时传递字符串的过程 但是,如果我运行: begin push_data(100,'q'''||:data);end; 它不会删除括号,我需要将字符串作为:data传递。这正是我需要调用并获得与上面相同结果的方法。这就是您要寻找的吗 declare v_txt varchar2(4000) := '["Project title afor BYU heads","The

我有一个分割逗号分隔字符串的过程。
字符串将在运行时以
[“”,“”]
格式传递

我需要调用在运行时传递字符串的过程

但是,如果我运行:

begin push_data(100,'q'''||:data);end;

它不会删除括号,我需要将字符串作为
:data
传递。这正是我需要调用并获得与上面相同结果的方法。

这就是您要寻找的吗

declare
  v_txt varchar2(4000) := '["Project title afor BYU heads","The values are,\n exactly up to the requirement and analysis done by the team.
Also it is difficult to,\n prepare a scenario notwithstanding the fact it is difficult. This user story is going to be slightly complex however it is up to the team","Active","Disabled","25 tonnes of fuel","www.examplesites.com/html.asp&net;","Apprehension","","","","25","Stable"]';
begin
   push_data(100, substr(v_txt, 2, length(v_txt) - 1));
end;
/

我的想法是:声明v_test_proc varchar2(50):='push_data';v_sql varchar2(2000年);begin v|U sql:='begin'| v|U test|U proc||'('|124; 124;:pid | | |','|124; 124;'q'。';"完";;执行即时v_sql;结束;但它只接受字符串绑定。我希望两者都作为绑定传递。输入字符串将来自不同的源。这就是为什么我想将两者都作为绑定传递。实际上它需要在apex应用程序中使用,所以我们可以简单地调用为:begin push_data(:pid,:data);结束;字符串格式为数组:[“”],因此需要在proc中相应调用/modifiy regex。在动态调用中,括号不会被删除。那么在push\u数据过程中只需使用
substr(data\u string,2,length(data\u string)-1)
?还是我遗漏了什么?