Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
{([a-z][\w]+)(?::(?:(\/(?:.+?)\/i?)|(?:([a-z]+)(?:\[(\d+)?(,)?(\d+)?])?)))?}
/
gi

Description

In string find regular expression or data type with limiters (start and end or summary count of symbols)

Submitted by Bohdanov Mikhail - 9 years ago