<?php $filename = '/path/to/my/filename.jpg'; echo preg_replace('/(?=\.)/', '_thumb', $filename, 1);
You have javascript disabled. You will not be able to edit any code.