I have string, that consist of one pre-defined string + random letters, like "https://www.facebook.com/" and "userId".
I have 3 predefined social host strings:
let vkPredefinedHost = "https://vk.com/"
let fbPredefinedHost = "https://www.facebook.com/"
let instPredefinedHost = "https://www.instagram.com/"
What i want is, extract social id, which is a string followed by that string (i don't know exactly which one i get).
So my question is:
1) How to check whether string contain one of this strings i pre-define
2) how to extract string followed by this strings
For example, i get "https://www.instagram.com/myUserId12345", and i want to get myUserId12345