Regular Expressions 101

Community Patterns

PHP Regex to Match Any Flipkart Url

0

Regular Expression
PCRE (PHP <7.3)

@
(http(s)?://www.)?((flipkart(?:.com)+([^\s\.]+[^\s]*)+[^,.\s]))
@
gm

Description

Since flipkart.com takes https://www. only or starts directly with flipkart.com. this is a regex to match any flipkart url

Submitted by anonymous - 4 years ago