Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(http|https):\/\/www.example\.com\/holidays\/(.*)-holidays\.html
/
gm

Description

Find any URL that sits in the /holidays/ subfolder and ends with .html

Submitted by anonymous - 4 years ago (Last modified 4 years ago)