Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(http(s)?:\/\/)?([\w]+\.)?linkedin\.com\/(pub|in|profile)
/
gm

Description

This a regex for matching linkedin profile URLs

Submitted by @antespi - 11 years ago