Test, validate and match regular expressions
Matches filenames in URLs, handling both regular slashes and URL-encoded path separators (%2F). Captures the filename including its extension when preceded by /, =, or %2F and followed by query parameters or end of string. Useful for extracting downloadable files, images, or documents from URLs in web scraping or log parsing.