if re.match(pattern, filename): print("Matched the solid feature pattern") else: print("No match")
It sounds like you’re referencing a (common in file sharing or P2P groups). -- moviesdrives.com -- Pushpa-2-RELOADED.2025.1...
import re pattern = r'^--\s moviesdrives.com\s --\s*Pushpa-2-RELOADED.\d{4}.\d+...' filename = "-- moviesdrives.com -- Pushpa-2-RELOADED.2025.1..." Plex)? If you need a (e.g.
general_pattern = r'--\s*[\w\-\.]+\.com\s*--\s*[\w\-\.]+\.\d{4}\.\d+\.\.\.' Would you like this adapted for , Bash , or as a media center naming rule (e.g., Radarr, Plex)? for a script
If you need a (e.g., for a script, regex, file parser, or torrent indexing logic) that matches the pattern you gave, here’s one possible implementation in Python using a regular expression: