nginx has supported PCRE2 since 1.21.5, so I’ve updated my build-nginx script to enable support for it too.

You can use old PCRE or the newer PCRE2 and build-nginx will do the right thing:

build-nginx -d https://ftp.exim.org/pub/pcre/pcre-8.44.tar.gz will use the old PCRE library

build-nginx -d https://github.com/PCRE2Project/pcre2.git will use the official PCRE2 github repo

build-nginx -d https://github.com/PCRE2Project/pcre2.git@pcre2-10.40 will build the PCRE2 release tagged pcre2-10.40

build-nginx -d https://sourceforge.net/projects/pcre/files/pcre2/10.37/pcre2-10.37.zip will use the 10.37 zip at the unofficial sourceforge mirror