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
/
(?<=Q)(?:\d+(?![.\d])|\d+\.\d+(?![.\d]))
/
gm
Input 1
1
New
Q232.1232 K1232.232323 Q232 K1232.232323 Q232.1232 K1232.2323 Q232.1232 R232.1232 K1232.232323 Q232.12.32 K1232.232323 Q232. K1232.232323
Substitution
Q232.1232 K1232.232323 Q232 K1232.232323 Q232.1232 K1232.2323 Q232.1232 R232.1232 K1232.232323 Q232.12.32 K1232.232323 Q232. K1232.232323