Regular Expressions 101

Community Patterns

How to document a regex? Example 1

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