Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(\/\d+\/)(.*)
/
ig

Description

Two groups. One of digits in between slashes (e.g. '/5/') followed by any text

Submitted by Leonardo Marcelino Vieira - 3 years ago