-1

I have an issue where I'm limited to the regex variant from golang and want to match entries that don't end with a specific word, here an example:

fooend
foond
fooendfoo
footemp

Usually I would use such a pattern

^.+(?<!end)$

which does not work since golang regex doesn't support lookaheads...

Does anyone have an idea how to achieve my initial goal with that what golang regex provides?

dkmob
  • 17
  • 3

0 Answers0