<?php echo preg_replace('/\.xml.+$/','.xml', 'foo.xml.bar.xmleoifwe');
You have javascript disabled. You will not be able to edit any code.