Regular Expressions 101

Community Library Entry

1

Regular Expression
Python

r"
(?:@|(?:(?:(?:https?://)?t(?:elegram)?)\.me\/))(\w{4,})$
"
gm

Description

a pattern to detect telegram username link or tag

Submitted by anonymous - 3 years ago