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