Test, validate and match regular expressions
Matches TikTok URLs and captures the numeric video ID. It supports two link formats: profile-based URLs like tiktok.com/@username/video/1234567890 and share links containing trending?shareId=1234567890. Group 1 captures the @username handle (or any preceding text), group 2 matches the path segment or shareId separator, and group 3 extracts the digits of the video ID. Useful for parsing TikTok links from text for embedding, tracking, or data extraction.