Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Removal of Non Word Characters
Open Workspace
JavaScript
Substitution
Created 2017-06-13 15:36
0
Regular Expression
/
[^
a
-
zA
-
Z0
-
9
]
\B
/
g
Description
An example of a regex to use when wanting to remove special characters from a string
Submitted by
Anonymous