* Viktor Dukhovni:

> Of course implementing a "jq" script with the same command-line
> interface as "postqf" is not too difficult.

Faced with the choice between doing that or writing Python code, I chose
the latter. ;-)

> The main difference is that the regular expression syntax in JQ is
> somewhat different when it comes to named groups, but this should not
> be an issue in typical usage.

In my experience it takes a lot more typing, brackets, and alternating
between single and double quotes to get even simple things done in
jq. That's what motivated me to write PostQF in the first place, which
started as a tool for my personal use. And yes, I am fond of PCRE, and
happy that Postfix supports them as well.

PostQF is not meant as the one application to end them all, but as a
more convenient alternative to jq, for cases in which the latter seems
like taking a sledgehammer to crack a nut. For me personally that's the
majority of cases.

-Ralph

Reply via email to