Regular Expressions 101

Community Patterns

all instagram regex

1

Regular Expression
PCRE (PHP <7.3)

/
(?:https?:\/\/)?(?:www.)?instagram.com\/?([a-zA-Z0-9\.\_\-]+)?\/([p]+)?([reel]+)?([tv]+)?([stories]+)?\/([a-zA-Z0-9\-\_\.]+)\/?([0-9]+)?
/
gm

Description

Loading markdown...
Submitted by threedot - 7 months ago