Ah, thanks, still thinking in a non python mind-set...
However, when I try this, I get the error:
TypeError: can't use a string pattern on a bytes-like object
edit: thanks, works when I use
Code:
youtubelink = re.search(youtubere, youtubesearch.read().decode('utf-8')