<?php preg_match( '/^\graphics/(\d+)\]/', '/graphics/100pixelp/000001.jpg', $matches); echo $matches[1]; // 1234
You have javascript disabled. You will not be able to edit any code.