Regular Expressions 101

Community Patterns

Platform.sh Web Location RegEx Example #1

0

Regular Expression
PCRE (PHP <7.3)

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

Description

See Unit Tests

Submitted by anonymous - 4 years ago