Test, validate and match regular expressions
This PCRE regex is designed to extract the file name and extension from a URL that contains a query string. It operates by matching everything up to the last slash, then capturing the file name before the last dot and the extension before the question mark. It is useful for parsing web addresses to isolate the specific file requested along with its associated query parameters.