Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(\s\w|\s\s)\s{2}(\w{2}\d{2}PRI)((?:\s+\d+)+)
/
gm
Test String
New
Device FT01PRI FT02PRI FT03PRI FV01PRI FV02PRI F AD01PRI 0 0 0 0 0 R CX01PRI 0 3 0 3 6 O CX02PRI 2 2 1 0 0 M CX03PRI 2 0 1 1 6 DA01PRI 0 0 0 0 0 DA02PRI 6 0 0 0 0 DB01PRI 0 0 0 0 0
Substitution
Processing...