<?php
$re = '/(.*)<FooBar>/s';
$str = "abcde\n fghij<FooBar>";
echo $matches[1];
}
PD9waHAKCiRyZSA9ICcvKC4qKTxGb29CYXI+L3MnOwokc3RyID0gImFiY2RlXG4JCWZnaGlqPEZvb0Jhcj4iOwppZiAocHJlZ19tYXRjaCgkcmUsICRzdHIsICRtYXRjaGVzKSkgewoJZWNobyAkbWF0Y2hlc1sxXTsKfQoJ