The solution is the data cutting between {}.
Try this:
$result = preg_replace("#\{img:(.*)\}#U",'<img src=\'$1\' style=\'width:100%\' />',$content);
0
solved Match content between parenthesis and get the url and change it to img tag using RegExp PHP [duplicate]