<?php $string="___---_-username"; echo preg_replace('{([-_])\1+}', "$1", $string);
You have javascript disabled. You will not be able to edit any code.