SQL Language (MOSC)

MOSC Banner

REGEXP_LIKE Negative Lookahead

Hi Everyone,

I have been researching about how I can do a negative lookahead with REGEXP_LIKE for more than one character/digit.

I would like to make the following work with REGEXP_LIKE. Can you please let me know if there is a way of doing the following with REGEXP_LIKE?

^(?!123([ -]?)45([ -]?)6789)(?!\b(\d)\3+\b)(?!000|666|900|999)[0-9]{3}([ -]?)(?!00)[0-9]{2}\4(?!0000)[0-9]{4}$

regex101: build, test, and debug regex

Thanks,

-Eb

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center