Regular Expressions 101

Community Patterns

Find duplicate char in a string

1

Regular Expression
ECMAScript (JavaScript)

Description

it was used in this codewar challenge. and i find i really interesting.

Also u can Write it like this if you want /(.)\1+/g it works exactly the same

Submitted by anonymous - a year ago