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
Only one special character("-") per word
Open Workspace
JavaScript
Match
Created 2025-09-20 18:27
1
Regular Expression
/
^
[
a
-
zA
-
Zа
-
яА
-
Я0
-
9
]
*
(
-
)?(?:
[
a
-
zA
-
Zа
-
яА
-
Я0
-
9
]
)*
$
/
gm
Description
Only one special character ("-") is allowed when entering a word
Submitted by
Anonymous