次のコードがあります
$pattern = '#\bset_message\("(.*?)"\)#';
$found = preg_match($pattern, $string, $matches);
しかし、私の $string が
set_message("Hello there
I like
to
eat
CHEES!");
一致に対しては何も返されませんが、使用すると返されます
set_message("Hello there!");
新しい行やそのようなもの (\r\n、\n など) を追加するにはどうすればよいですか?