Deleting multiple backslashes; regex?

From: Date: Mon, 15 Mar 2010 19:03:12 +0000
Subject: Deleting multiple backslashes; regex?
Groups: php.general 
Request: Send a blank email to php-general+get-302864@lists.php.net to get a copy of this message
Anyone have a regex pattern for deleting multiple backslashes e.g., \\\\\\\ I pretty good with regex; but, be damned if I can delete them with preg_replace() I've tried "\\\\" as the manual says preg_replace("/\\\\/", '', $str); preg_replace("/(\\\\)+/", '', $str); preg_replace("/\x5C/", '', $str); preg_replace("/\\x5c/", '', $str); And lots of others. stripslashes() and stripcslashes() are limited.

« previous php.general (#302864) next »