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