Test, validate and match regular expressions
Matches Telegram usernames and profile links in two forms: the @username format, or URLs like t.me/username, telegram.me/username, or https://t.me/username. The username itself (minimum 4 word characters) is captured in group 1 for easy extraction. With global and multiline flags, it scans multi-line text to find all Telegram handles per line, useful for parsing mentions or extracting contact links from messages.