Webflags: g
LinkedIn Profile URL
Match LinkedIn profile URLs and capture the profile slug.
Try it in RegexPro →Available in
Pattern
regexengine-agnostic
https?:\/\/(?:www\.)?linkedin\.com\/in\/([\w\-]{3,100})\/? (flags: g)Raw source: https?:\/\/(?:www\.)?linkedin\.com\/in\/([\w\-]{3,100})\/?
How it works
https?:\/\/(?:www\.)?linkedin\.com\/in\/ matches the canonical profile URL prefix (with optional www). ([\w\-]{3,100}) captures the slug — letters, digits, underscores, and hyphens, 3–100 chars. \/? allows an optional trailing slash.
Examples
Input
Find me at https://linkedin.com/in/satyanadellaMatches
https://linkedin.com/in/satyanadella
Input
https://www.linkedin.com/in/jane-doe-12345/Matches
https://www.linkedin.com/in/jane-doe-12345/
Input
no linkedin linksNo match
—Common use cases
- •CRM enrichment from text
- •Recruiter tooling — extracting candidate profiles
- •Email signature parsing
- •ATS data ingestion pipelines
Related patterns
GitHub Repository URL
WebMatch GitHub repository URLs and capture the owner and repo segments.
Twitter / X URL
WebMatch Twitter/X profile and status URLs, capturing the handle and (optional) tweet ID.
URL Validation
WebMatch http and https URLs with optional www prefix, paths, query strings, and fragments.
YouTube Video ID
WebExtract 11-character YouTube video IDs from long URLs, short URLs, or embed URLs.