Test, validate and match regular expressions
Matches LinkedIn URLs and captures the profile identifier (username or company ID) from the URL path. It handles URLs like linkedin.com/in/john-doe or linkedin.com/company/example, extracting the ID following the path type segment (in, company, school, pub) into capture group 1. Note that the character classes contain literal spaces and 'A-z', which accidentally broadens matching to include spaces and some special characters. Useful for parsing or extracting LinkedIn profile names from text or scraped content.