Obtén el subreddit

Published by Helen Yu in

Crea una función para extraer el nombre del subreddit de su URL.

Ejemplos

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