This function extracts the subreddit name from a reddit thread url.

getRedditUrlSubreddit(url)

Arguments

url

Character string. Reddit thread url.

Value

Subreddit name as character string.