Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(?!\s)(.{3,10}\S)(?!\S).*
/
mg
Input 1
1
New
This is a long string this is a test cutting down edges a b c d e f g h abcd abcde this isatest is a test ist a test ist a te thiss is a test a b a S a ab abc abcd abcde A bcdefghifkkle abcd ef g aaa abcd ef g aa thisisatesttesttest abcdefghijkl
Extraction
This is a long string this is a test cutting down edges a b c d e f g h abcd abcde this isatest is a test ist a test ist a te thiss is a test a b a S a ab abc abcd abcde A bcdefghifkkle abcd ef g aaa abcd ef g aa thisisatesttesttest abcdefghijkl