We're currently getting a preg_replace error message on our site due to deprecation.
Our code is as follows:
$out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $data);
Any suggestions on how this can be replaced with non-deprecated code?