This function extracts the subreddit name from a reddit thread url.
getRedditUrlSubreddit(url)
url
Character string. Reddit thread url.
Subreddit name as character string.