Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

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

Description

The new quiz feed pages and its sub-feeds. i.e. /quizzes/foo

Submitted by anonymous - 3 years ago