Regular Expressions 101

Community Patterns

Capture Groups: Any number in between slashes followed by anything

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