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
/
\s(\w*)Command\.Register\((([\S]*,([^;\n\r])*)+)typeof\((.*)Values\)\);
/
g
Input 1
New
public static readonly SimpleCommand ReadTemperatureCommand = SimpleCommand.Register(ReadTemperatureCommandId, "ReadTemperature", "showtemp.py", "", 5, typeof(TemperatureListCommandResultProcessor), typeof(TemperatureListDeviceValues)); public static readonly SimpleCommand GetDataType1Command = SimpleCommand.Register( GetDataType1CommandTypeId, "GetData", "HttpClient2.py", @"""/data/ajax.txt?CAN=1&HASH=00200403&TYPE=1"" ""GET"" """"", 5, typeof(SunwaysSolarInverterDataType1CommandResultProcessor), typeof(SunwaysSolarInverterDeviceValues)); public static readonly ArgumentedCommand UpdateAsyncCommandsCommand = ArgumentedCommand.Register( UpdateAsyncCommandsCommandId, "UpdateAsyncCommands", "UpdateAsyncCommands.py", "", 5, UpdateAsyncCommandsCrea
Substitution
GridObjectModel.Register$1Reference$2($3, $4TypeIdString);
public static readonly SimpleCommand ReadTemperatureCommand = SimpleCommand.Register(ReadTemperatureCommandId, "ReadTemperature", "showtemp.py", "", 5, typeof(TemperatureListCommandResultProcessor), typeof(TemperatureListDeviceValues)); public static readonly SimpleCommand GetDataType1Command = SimpleCommand.Register( GetDataType1CommandTypeId, "GetData", "HttpClient2.py", @"""/data/ajax.txt?CAN=1&HASH=00200403&TYPE=1"" ""GET"" """"", 5, typeof(SunwaysSolarInverterDataType1CommandResultProcessor), typeof(SunwaysSolarInverterDeviceValues)); public static readonly ArgumentedCommand UpdateAsyncCommandsCommand = ArgumentedCommand.Register( UpdateAsyncCommandsCommandId, "UpdateAsyncCommands", "UpdateAsyncCommands.py", "", 5, UpdateAsyncCommandsCrea