Obtenha o subreddit

Published by Pickle in

Crie uma função para extrair o nome do subreddit da sua URL.

Exemplos

SubReddit("https://www.reddit.com/r/funny/") ➞ "funny"

SubReddit("https://www.reddit.com/r/relationships/") ➞ "relationships"

SubReddit("https://www.reddit.com/r/mildlyinteresting/") ➞ "mildlyinteresting"

Notas

N/A