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-]+(?=-)
/
gm
Input 1
1
New
scQA00-psql11 scQA00-psql21 scQA01-psql2 scQA00-psql21 scqa00-psql01 scqa00-psql11 scqa00-psql21
Substitution
scQA00-psql11 scQA00-psql21 scQA01-psql2 scQA00-psql21 scqa00-psql01 scqa00-psql11 scqa00-psql21