- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$matches = array();
preg_match( "/^(.*)-keyword-(\d+)-([\w]+)\..+$/", '2in1-muurverf-badkamer-en-keuken-schimmelbestendig-ean-8710839146009-highres.jpg', $matches );
var_dump( $matches );