Regular Expressions 101

Community Patterns

Community Library Entry

-2

Regular Expression
PCRE (PHP <7.3)

~
^/(?<page>quizzes)(?:/(?<subpage>[\w-]+)?)?(?:\.xml)$
~
gm

Description

Matches the XML pages of the /quizzes routes for feedpager

Submitted by anonymous - 3 years ago