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
/
^(?:(?!timeScale).)*(duration: \d+)$
/
gm
Input 1
New
duration: 2000 duration: timeScale * 3000 duration: 4000 * timeScale
Substitution
$1 * timeScale
duration: 2000 duration: timeScale * 3000 duration: 4000 * timeScale