<?php $path = "/images/50x50/365141.jpg"; preg_match( '/^\/*(?:(item|swatch)\/+)?(?:([\w|\-]+)\/+)?([\w|\-]+)(?:\.([a-z|A-Z]{3,4}))?$/', $path, $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.