## Bug Report REGEXP_COUNT returns wrong value Using IvorySQL master, Oracle compatible mode: ```sql [ORA]postgres=# SELECT REGEXP_COUNT('bX' || 'cX', '.X', 1, 'c') AS r2 from dual; r2 ---- 2 (1 row) [ORA]postgres=# SELECT REGEXP_COUNT(chr(10) || 'bX' || 'cX', '.X', 1, 'c') AS r2 from dual; r2 ---- 1 (1 row) [ORA]postgres=# SELECT REGEXP_COUNT(chr(10) || 'bX' || chr(10) || 'cX', '.X', 1, 'c') AS r2 from dual; r2 ---- 0 (1 row) ``` Using Oracle 19c: ```sql SELECT REGEXP_COUNT('bX' || 'cX', '.X', 1, 'c') AS r2 from dual; r2 ---- 2 (1 row) SELECT REGEXP_COUNT(chr(10) || 'bX' || 'cX', '.X', 1, 'c') AS r2 from dual; r2 ---- 2 (1 row) SELECT REGEXP_COUNT(chr(10) || 'bX' || chr(10) || 'cX', '.X', 1, 'c') AS r2 from dual; r2 ---- 2 (1 row) ```
Activity
ai-yang commentedon Jul 31, 2026
/assign
faweizhao26 commentedon Aug 18, 2026
Thanks for your contribution. Please submit this form and we will send you the swags.