Take this regular expression: /^[^abc]/. This will match any single character at the beginning of a string, except a, b, or c.
/^[^abc]/
If you add a *
*
try this
.+?efg
Query :
select REGEXP_REPLACE ('abcdefghijklmn','.+?efg', '') FROM dual;
output :
hijklmn