Regular Expressions 101

Community Patterns

Find in string template with regular expression

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