httpthe literal text http (case sensitive) s?optionally matches the literal s (11510 / 1638 / 7316) (case sensitive)
:the literal : (5810 / 728 / 3A16)
\/the literal / (4710 / 578 / 2F16)
\/the literal / (4710 / 578 / 2F16)
Non-Capturing Group(?:www\.)? ?repeats the group contents below at most once:
wwwthe literal text www (case sensitive) \.the literal . (4610 / 568 / 2E16)
instagramthe literal text instagram (case sensitive) \.the literal . (4610 / 568 / 2E16)
comthe literal text com (case sensitive) \/the literal / (4710 / 578 / 2F16)
Non-Capturing Group(?:(?:((?:reels)|p)\/(\w+))|((stories)\/(\w+)\/\d+)) 1st Alternative(?:((?:reels)|p)\/(\w+)) Non-Capturing Group(?:((?:reels)|p)\/(\w+)) Non-Capturing Group(?:reels) reelsthe literal text reels (case sensitive) pthe literal p (11210 / 1608 / 7016) (case sensitive)
\/the literal / (4710 / 578 / 2F16)
\w+any word character, repeated at least once
2nd Alternative((stories)\/(\w+)\/\d+) Group 3((stories)\/(\w+)\/\d+) storiesthe literal text stories (case sensitive) \/the literal / (4710 / 578 / 2F16)
\w+any word character, repeated at least once
\/the literal / (4710 / 578 / 2F16)
\d+a digit, repeated at least once
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string