Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(.)(?=.*\1)
/
g

Description

Deletes all duplicated chars in a string

Submitted by Marcelo Fuentes - 8 years ago