0

How can I write a regex in RE2 syntax to match strings which contain 'register' but doesn't contain 'dashboard'?

E.g.

PS 'dashboard' (if any) is always placed after 'register'

I'd use .*register(?!.*dashboard).* but RE2 doesn't support that syntax.

0 Answers0