I want to replace the content from the string that is contained in {content}. These are multilines, etc. The preg_replace function should remove all {com no rug Cop}
preg_match_all ('/ {* ([^}] + *)} / s'), $ content, $ matches)
Try the following:
$result = preg_replace('/\{[^}]*\}/s', 'replacement content', $subject);
$str = preg_replace('/(?<=\{).+?(?=\})/s', '', $str);
.
?
preg_match_all('/\{([^}]+\)}/s'), $content, $matches)
s, . $matches , .
s
$matches