Split String

I was wondering how I would split a string (I think that’s what it’s called). For instance, say I wanted ‘link’ to be ‘sQhWEOaQ-Fg’ of the player’s input, which would be https://www.youtube.com/watch?v=sQhWEOaQ-Fg (video is pure coincidence), how would I go about doing that?
Thanks for any help in advance :slight_smile:

local inside = string.match(input, “youtube%.com%/watch%?v%=([a-zA-Z%-%+]+)”)