Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
https?:\/\/(?:www\.)?instagram\.com(?:\/[^\/]+)?\/(?:p|tv|reel)\/([^\/?#&]+)
/
gm

Description

Instagram post, reel, tv Regex for PHP

Submitted by Vikas Kapadiya - 2 years ago