Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if re.compile('(?i)((s|se)\d+(, | |,)?(e|ep)\d+)').match(query):
- regex = re.compile('(?i)(s|se)(\d+)(, | |,)?(e|ep)(\d+)')
- numbers = regex.findall(query)
- return str(numbers)
- results = [int(i) for i in numbers[0]]
- snum = str(int(results[0]))
- enum = str(int(results[1]))
- uri = 'http://api.ponycountdown.com/' + snum + '/' + enum
- nl = query
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement