Replace multiple dashes with one dash PHP 13 viewsDecember 7, 2022PHP WordPress 0 Jagdish Sarma646 December 7, 2022 0 Comments $str = preg_replace('/-+/', '-', $new_url); Jagdish Sarma Asked question December 7, 2022 Add a Comment 0 Answers ActiveVotedNewestOldest Write your answer. Login