Python Eliminar artículos de String Regex

# credit to the Stack Overflow user in the source link

re.sub('(\s+)(a|an|and|the)(\s+)', '\1\3', text) # leaves the residual whitespace

re.sub('\s+(a|an|and|the)(\s+)', '\2', text) # removes the whitespace
wolf-like_hunter