Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(\/(?<scope>[^\/]+)\/?)?\/sitemap\/(.*)(\.xml){1}$
/

Description

See Unit Tests

Submitted by anonymous - 4 years ago