Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\w{10}(?=\w)
/
gm
Input 1
1
New
Pneumonoultramicroscopicsilicovolcanoconiosis is a really long word It's a name that has been invented for a lung disease caused by breathing in very small pieces of ash or dust Pneumono refers to the lung. Ultra means extremely, microscopic means tiny, silica is sand, volcano is self-evident, and coniosis is scarring.
Substitution