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?
Aucun commentaire:
Enregistrer un commentaire