I am looking for a way to validate a link to make sure that it is pointing to a LinkedIn public profile page in PHP.
I have a website and I would like my users to be abl
I use another regular expression more permisive:
^(http(s)?:\/\/)?([\w]+\.)?linkedin\.com\/(pub|in|profile)
It includes URLs without squeme and all samples from other answers. You can make any variation here http://regex101.com/r/vE8tV7