Regular Expressions 101

Community Patterns

Get the username from LinkedIn-URL

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(https?:\/\/(www.|de.)?linkedin.com\/(mwlite\/|m\/)?in\/([a-zA-Z0--ž_.-]+)\/?)
/
gm

Description

Get only the profile name from international or german LinkedIn-URL

Submitted by LEIK Software - 3 years ago