Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-12733: regular expression too long

VisuSep 6 2016 — edited Oct 11 2016

Hi All,

We have a requirement to skip the HTML tags when I am displaying in the BIP report output. I developed below query and it is working fine when I tested for few records.

When I am running the entire report and I am getting below error,

"Java.sql.SQLException: ORA-12733: regular expression too long."

Kindly review the below SQL query and suggest to skip this error.

select regexp_replace(:T,b.s,' ') from dual a,

(select LISTAGG (text,'|')

WITHIN GROUP (ORDER BY null)  s

from (select distinct substr(:T,instr(:T,'<',1,level),instr(:T,'>',1,level)-instr(:T,'<',1,level)+1) text

from dual

connect by level<=REGEXP_COUNT(:T,'<'))) b

Thanks,

Visu

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2016
Added on Sep 6 2016
25 comments
6,833 views