Test, validate and match regular expressions
This regex matches a string that starts with a filename containing only alphanumeric characters, followed by a specific file extension. It validates common image formats (jpg, png, gif, bmp) and PDF files, making it useful for file upload validation or file type filtering in applications.