Regular Expressions 101

TikTok Video ID

Open Workspace
  • Python
  • Match
0

Regular Expression

r'''
(?x) https?:// (?: (?:www|m)\. (?:tiktok.com)\/ (?:v|embed|trending) (?:\/)? (?:\?shareId=)? ) (?P<id>[\da-z]+)
'''
gm

Description

Submitted by Anonymous