Regular Expressions 101

Telegram URL

Open Workspace
  • JavaScript
  • Match
2

Regular Expression

/
(https?:\/\/)?(www\.)?(t\.me|telegram\.dog|telegram\.me)\/[A-Za-z0-9](?:[A-Za-z0-9_]{2,30}[A-Za-z0-9])?\/?
/
ig

Description

I had to check for myself, but I thought, suddenly someone also come to someone later =)

Submitted by chiminori