Regular Expressions 101

Community Patterns

1...45678...901

Community Library Entry

3

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 - 9 years ago