Regular Expressions 101

Community Library

Community Library Entry

2

Regular ExpressionOpen Workspace

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

Description
Created·2023-07-23 15:57
Updated·2023-07-24 15:49
Type·Match
Flavor·Python

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
Open Workspace