global_defs {
notification_email {
acassen
}
#notification_email_from Alexandre.Cassen@firewall.loc
#smtp_server 192.168.200.1
#smtp_connect_timeout 30
router_id LVS_DEVEL
}
这种的配置文件,无视掉global_defs怎么把里面的内容用正则匹配成key:value的形式呢?
比如
{'notification_email': '{\n acassen\n }\n, 'router_id': 'LVS_DEVEL'}这种
别想着一个正则就搞定,可以考虑分几步进行处理:
这样就可以把配置参数解析出来了。