<?php $str = 'http://asak.pl/asdask//asdadk//asd.pdf'; $regexp = '/[^:](\/\/+)/'; echo preg_replace($regexp, '/', $str);
You have javascript disabled. You will not be able to edit any code.