I’m quite new to formulas, but I’m trying to find a formula that would extract a username from a Social Media Profile URL and return the username with an “@” in front of it.
This is definitely possible, however, there is one complicating factor that I would like to get some clarifying information on your use case before you can really get a solid answer.
Do you expect to only get URLs from a static list of platforms/websites?
Since each platform can have its own formatting conventions within its URLs, you might want to create a list of the URL formats you expect to come through.
Once you get the sample data together, you’ll want to create ‘rules’ per se.
You’d then use the samples to extract, transform, and validate the usernames in the @userName format.
I’m not too familiar with the different URL formats for given platforms, so I might be making an extra step, but it’s the first thing that comes to my mind.
This will primarily be for Twitter, Instagram and TikTok, but I might need it for YouTube and Facebook in the future.
Most platforms are: https://www.“SocialNetwork”.com/“UserName”, but TikTok is slightly different as it already adds an “@” before the user name, so it would be: https://www.“SocialNetwork”.com/@“UserName”
I’ll probably be manually (Copy and Pasting) the URLs into an URL field on Airtable so I get the right ones in as some people can have different usernames on each platform.