Regular Expressions 101

Community Patterns

Lookup for a duplicated set of characters {2,} (Two or more)

0

Regular Expression
ECMAScript (JavaScript)

/
([\w!@#$%^&*_=+\-]{2,}).*?\1
/
g

Description

Lookup if a set of two or more characters show up again in the string.

For JavaScript ECMAScript

Submitted by rdmoedas - 3 years ago