Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.
<?php $string = "a--b---c-d-e"; $newstring = preg_replace("/(-)(\1+)/", "-", $string); ?>
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
8 Experts available now in Live!