Skip to content

Instantly share code, notes, and snippets.

@stavrossk
Created February 20, 2013 08:49
Show Gist options
  • Save stavrossk/4994051 to your computer and use it in GitHub Desktop.
Save stavrossk/4994051 to your computer and use it in GitHub Desktop.
Regural expressions for extracting key metadata from tv episode media files. This metada will be used by entertainment media application for online media identification.
@".*[s,S](?<SeasonNumber>\d{1,2}).?[e,E](?<EpisodeNumber>\d{1,2}).*"
@"(.*\\)*(?<SeriesName>.*)((s|S)(?<SeasonNumber>[0-9]{1,2})(e|E)(?<EpisodeNumber>[0-9]{1,2}))(.(?<Name>.*)|.*)\.(?<FileType>...?)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment