Test, validate and match regular expressions
This regular expression extracts the full filename, including its extension, from the end of a URL or file path. It captures the filename body consisting of alphanumeric characters and hyphens, followed by a file extension ranging from 2 to 5 alphanumeric characters. It is particularly useful for parsing web addresses to isolate document, image, or media file names.