preg_match('|
(.*?)
|si',$s,$r);

bu şekilde kullan