I need an urgent help about an exclusion case in a regular expression (oracle).
The main regexp is that:
1([^4][:;]|[0-9][^:;].*)
I need to modify or enhance this regexp in order to exclude a spesific string "1013;" but could not achieve it. I have been searching a solution way for two days but could not find anything that works in oracle.
The most popular solution alternative (?!stringToExclude)Regexp is not working in oracle. (the version I have: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production)
Do you have any idea about this issue? How can i overcome this problem?
my test sql statement checking the validation of new regexp is that:
select regexp_substr('1013;', '1([^34][:;]|[0-9][^:;].*)') from dual --> returns 1013;
select regexp_substr('10133;', '1([^34][:;]|[0-9][^:;].*)') from dual --> returns 10133;
select regexp_substr('1013;', 'to be regexp') from dual --> should return nothing
select regexp_substr('1013', 'to be regexp') from dual --> should return nothing
select regexp_substr('1013:', 'to be regexp') from dual --> should return nothing
select regexp_substr('10133;', 'to be regexp') from dual --> should return 10133;