For quick testing of Nginx regular expressions, you can use a ready-made docker image. To do this, you need to clone the NGINX-Demos repository:
git clone https://github.com/nginxinc/NGINX-Demos
Follow to the "nginx-regex-tester" directory:
cd NGINX-Demos/nginx-regex-tester/
And launch the container using "docker-compose":
docker-compose up -d
And open the next page:
http://localhost/regextester.php
thank for docker image. quick and easy.