Skip to content

Instantly share code, notes, and snippets.

@oleander
Created January 31, 2011 23:35
Show Gist options
  • Save oleander/805076 to your computer and use it in GitHub Desktop.
Save oleander/805076 to your computer and use it in GitHub Desktop.
# This
if result.title =~ /(s\d{2}e\d{2})/i
return unless string.match(/#{$1}/i)
end
# Like this?
return if result.title =~ /(s\d{2}e\d{2})/i and not string.match(/#{$1}/i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment