What is the difference between the following two Nginx regex patterns?
location ~* /v1/path1/(.*)/path3
and
location ~* /v1/path1/(.*?)/path3
The difference is the ?
in the regex.
All I intend to do is match all paths in /v1/path1/*/path3
. I tested both and they both seem to work.