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