<?php $test = "http://www.abc.com/video/test.mp4"; echo preg_replace('/\.([^.\/]*?)$/', '', $test);
You have javascript disabled. You will not be able to edit any code.