Test, validate and match regular expressions
This regex matches Wikipedia or Wikimedia thumbnail image URLs. It effectively parses the hashed directory structure, capturing the base path, the original image filename (including formats like JPG, PNG, GIF), and the generated thumbnail filename (e.g., 200px-image.jpg). It is useful for extracting or validating image URLs in web scraping or data processing tasks.