i have such config file:
#DHCP Server Configuration file.
deny unknown-clients;
subnet 10.8.140.2 netmask 255.255.255.255 {
host example{
optian:param;
}
host example2{
option2:param2;
}
}
subnet 20.8.110.1 netmask 255.255.255.255 {
}
And i need to find all subnet blocks. The problem is subnet block can contain host blocks (with curly brackets). And i cant construct regexp to match those.
So the result should be:
1. subnet 10.8.140.2 netmask 255.255.255.255 { ... host {...} host{...}}
2. subnet 20.8.110.1 netmask 255.255.255.255 { ... }