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!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.
SQL> with t as (select '0' str from dual) 2 select * 3 from t 4 where regexp_like (str, '^d{0,2}*$'); no rows selected SQL> with t as (select '0' str from dual) 2 select * 3 from t 4 where regexp_like (str, 'd{0,2}*'); S - 0
SQL> select * from v$version 2 / Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production PL/SQL Release 11.1.0.6.0 - Production CORE 11.1.0.6.0 Production TNS for 32-bit Windows: Version 11.1.0.6.0 - Production NLSRTL Version 11.1.0.6.0 - Production SQL> with T as ( 2 select '0' str from dual) 3 select * 4 from T 5 where regexp_like (str, '^d{0,2}*$') 6 / no rows selected SQL>
with T as ( select '0' str from dual) select * from T where regexp_like (str, '^d{0,2}*$')
select * from V$version; BANNER -------------------------------------------------------- Oracle Database 11g Release 11.2.0.1.0 - Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for 32-bit Windows: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production
select * from dual where RegExp_Like('0','^a{0,2}*$');
a{0,2}*