Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
[^a-zA-Z0-9\+(\-){1,}]{1,}
/
g

Description

Strips all non "A-Z,a-z,0-9+-_" characters and replaces them with a single "-"

Submitted by Apsis0215 - 7 years ago