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
r"
^(?P<command>RENAME_SECTION)\s+(?P<file>\S+?)::(?P<section>\S+)\s+(?:(?P<target_file>\S+?)::)?(?P<target_section>.+)$
"
gm
Input 1
1
New
RENAME_SECTION io.cfg::BUS1 io.cfg::BUS3 RENAME_SECTION io.cfg::BUS2 io_new.cfg::BUS2 RENAME_SECTION io.cfg::VID VID1