Regular Expressions 101

Community Patterns

Quizzes Feedpager – XML

-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 - 2 years ago