preg_match_all('/interface FastEthernet([\s\S][^\!]*)/',$aaa,$cdpip) ; interface FastEthernet 开始 中间任何字符 到 ! 终止