Hide options
Show Linenumbers
Report Abuse
Help & FAQ
Eliminate duplicate (or more) characters in a string
Pregmatch in the example will remove all duplicates with an underscore
PHP
How To's
-
Regular Expressions
-
One Liners
$text = preg_replace('#(_)+#','_',$text);
Top