Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(\/+[^\/\[\]]+(?:\[[^\]']*(?:'[^']*')\])?)+
/

Description

How to document a regex? Example 1: undocumented Regex which works with my test string

Submitted by Thomas - 10 years ago