<?php $path = "item/image/365141"; 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.