<?php $string = 'test.png'; $string = preg_replace(':.png$:', '.jpg', $string); var_dump($string);
You have javascript disabled. You will not be able to edit any code.