Build, test, and debug regular expressions
This regular expression matches Instagram URLs or profile paths. It optionally looks for the 'https://' protocol, 'www' subdomain, and 'instagram.com' domain, followed by a username or path consisting of letters, numbers, and dots. While primarily designed to validate or capture Instagram web addresses, its heavy use of optional groups makes it quite permissive, meaning it can also match standalone usernames or relative paths. Use this to flexibly extract or validate Instagram-related links and profile names in text.