【发布时间】:2016-06-11 20:32:48
【问题描述】:
如何匹配 { 和 } 之间的多行。正是我需要匹配下面的块
host customerPERA {
host-identifier option agent.circuit-id "x:y";
fixed-address yyy.yyy.yyy.yyy;
option routers xxx.xxx.xxx.xxx;
option subnet-mask 255.255.255.0;
}
我必须从非常大的 dhcpd.conf 文件中删除该块。 提前致谢!
附:我忘了,我需要 perl 的正则表达式..
【问题讨论】: