3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '"res":"https://my.site.com/image/I/fj23l6j2lgk_AM1200_.jpg"'; echo preg_match('~(?<=^"res":")https://my\.site\.com/image/I/[a-zA-z\d]{11}_\w*_\.jpg(?="$)~', $string, $out) ? $out[0] : 'no match';

preferences:
107.89 ms | 404 KiB | 5 Q