Closed YuvalOmerRep closed 3 months ago
Hello, gojq uses https://pkg.go.dev/regexp for regexp which does not support looka-head/behind, jq uses https://github.com/kkos/oniguruma which do support it.
Right, this is due to the difference of ragex engine.
@YuvalOmerRep FYI the differences are documented here https://github.com/itchyny/gojq?tab=readme-ov-file#difference-to-jq
Found a problem with gojq when calling match on a regex containing "?<=" example:
This error seems to be caused by the following line in compileRegexp:
re = strings.ReplaceAll(re, "(?<", "(?P<")