- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
preg_match('/^(s3\:\/\/[0-9A-z\-\_\.]+\@[0-9A-z\-\.]+\.com)\/(.*)\/([0-9A-z]+\.(jpg|png|jpeg|gif|bmp))$/', 's3://aqadd.com.ssrmap@s3-eu-west-1.amazonaws.com/listings/17/28/2385fd6a3c3a036c0e41eaf6c6654839.jpg', $matches);
var_dump($matches);