Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\b([\w]+) +(\1)\b
/
gm

Description

This is an adapted version of the regex writen at the book Mastering Reguar Expressions.

Submitted by maffei2443 - 6 years ago