I have to exclude a list of folders in a regular expression. Currently I am using a negative lookahead which works great:
Unfortunately, I'm on a system that has regex.h
as the only regex library installed which does not support a lookahead (as far as I'm aware). Is it possible to do the above pattern without a lookahead? I may have an arbitrary number of folders so I don't believe the technique described in Regex: Matching by exclusion, without look-ahead - is it possible?. Is this possible to do without a lookahead? Or if not, I'll install something like pcre2
to do the above.