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
/
\b\040?(\d[.]?\d?\040?)?(DDP|DD\+?\s?)([. ]?\040?\d[.]?\d?)?\b
/
gm
Input 1
1
New
Want All Selected DDP 5.1 DD+ 5.1 DD 5.1 DDP5.1 DD+5.1 DD5.1 Want All Selected 5.1 DDP 5.1 DD+ 5.1 DD 5.1DDP 5.1DD+ 5.1DD Don't want the 5.1 ending selected 5.1 DDP 5.1 5.1 DD+ 5.1 5.1 DD 5.1 5.1DDP5.1 5.1DD+5.1 5.1DD5.1 Don't want the ending single number 5 selected 5.1 DDP 5 5.1 DD+ 5 5.1 DD 5 5.1DDP5 5.1DD+5 5.1DD5