He debajo de la salida de scutil --nc show <service id>
Connected
Extended Status <dictionary> {
ConnectionStatistics : <dictionary> {
ConnectCount : 6
ConnectedCount : 3
DisconnectedCount : 5
MaxConnectTime : 1874
}
IPv4 : <dictionary> {
Addresses : <array> {
0 : 10.20.15.181
}
ExcludedRoutes : <array> {
0 : <dictionary> {
DestinationAddress : 115.112.149.120
InterfaceName : en0
SubnetMask : 255.255.255.255
}
1 : <dictionary> {
DestinationAddress : 115.112.149.120
InterfaceName : en0
SubnetMask : 255.255.255.255
}
2 : <dictionary> {
DestinationAddress : 115.112.149.120
InterfaceName : en0
SubnetMask : 255.255.255.255
}
3 : <dictionary> {
DestinationAddress : 115.112.149.120
InterfaceName : en0
SubnetMask : 255.255.255.255
}
4 : <dictionary> {
DestinationAddress : 115.112.149.120
InterfaceName : en0
SubnetMask : 255.255.255.255
Quería eliminar direcciones IP de Addresses : <array>
desde abajo
IPv4 : <dictionary> {
Addresses : <array> {
0 : 10.20.15.181
1 : 10.20.15.182
}
¿Cómo escribir expresiones regulares para ello?