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'
^(?!["#\n])(.*?)=(.*?)([#].*)?$
'
gm
Input 1
"""Configuration file.""" CONFIG_VERSION = "0.5.1" # still have some obsolete keys # ====================================================================================================================== # ROBOT HARDWARE PROPERTIES # ====================================================================================================================== CORK_TO_CAMERA_DISTANCE_X = 2 #21 #3 # # distance between camera and cork on the robot, X axis, relative, mm CORK_TO_CAMERA_DISTANCE_Y = 28 #24 #25# distance between camera and cork on the robot, Y axis, relative, mm # ====================================================================================================================== # NAVIGATION ROUTING SETTINGS # ====================================================================================================================== #KP = 0.2 # for -10000 : *0.55 wheels turning degrees multiplier #KI = 0.0092 # fpr rpm-1000 : *0.91 KP = {-2500:0.001, 0:0.2, -10000:0.50*0.55} KI
Substitution
\1 = "new_var" \3
"""Configuration file.""" CONFIG_VERSION = "0.5.1" # still have some obsolete keys # ====================================================================================================================== # ROBOT HARDWARE PROPERTIES # ====================================================================================================================== CORK_TO_CAMERA_DISTANCE_X = 2 #21 #3 # # distance between camera and cork on the robot, X axis, relative, mm CORK_TO_CAMERA_DISTANCE_Y = 28 #24 #25# distance between camera and cork on the robot, Y axis, relative, mm # ====================================================================================================================== # NAVIGATION ROUTING SETTINGS # ====================================================================================================================== #KP = 0.2 # for -10000 : *0.55 wheels turning degrees multiplier #KI = 0.0092 # fpr rpm-1000 : *0.91 KP = {-2500:0.001, 0:0.2, -10000:0.50*0.55} KI