Test, validate and match regular expressions
This PCRE2 regex matches standard URLs with optional protocols (HTTP, FTP) or bare domain names. It uses negative lookarounds to ensure the link is not preceded or followed by non-whitespace characters, which naturally excludes links directly enclosed in curly brackets or attached to text. It is useful for extracting standalone links from plain text or chat messages.