I am confused about support for ^ as beginning of line anchor in oracle.
Below queries returns nothing:
select 1 from dual where regexp_like('1000C', '^[\dA-Z]+$');
select 1 from dual where regexp_like('1000C', '^1[\dA-Z]+$');
Same queries without ^ in the beginning seems to work fine:
select 1 from dual where regexp_like('1000C', '[\dA-Z]+$');
To my surprise below query also did not work:
select 1 from dual where regexp_like('1000C', '^1[\dA-Z]+');
However, without [\dA-Z]+ , ^seems to work:
select 1 from dual where regexp_like('1000C', '^1');
Below question is somewhat talks about ^ in oracle: Oracle regex - does not start with and does not end with
and below oracle docs seems to indicate support for ^ as well: https://docs.oracle.com/cd/B13789_01/appdev.101/b10795/adfns_re.htm#1006817
I tested 1000C
against expression ^[\dA-Z]+$
in https://regex101.com/, it matches correctly in all the flavours on the site.