Community Patterns

Community Library Entry

2

Regular Expression
Created·2023-07-23 15:57
Updated·2023-07-24 15:49
Flavor·Python

r"
(?i)(https\:\/\/){1}((t\.me|telegram\.me)\/){1}(joinchat\/)?(([\+\_\-a-zA-Z0-9])+)$
"
mg
Open regex in editor

Description

You can use this regular expression to identify any type of Telegram link. It doesn't matter whether it is t.me or telegram.me.

Links including "joinchat" are also accepted.

Submitted by Telegram : T.me/TinyPY