Re: [PHP] removing double backslashes and leaving singles

2001-05-22 Thread Adam Wright
uot;Dennis Gearon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 22, 2001 5:10 PM Subject: [PHP] removing double backslashes and leaving singles > I've tried this and it doesn't work, any ideas? > > $illegal_chars="[^a-zA-Z0-9._\

[PHP] removing double backslashes and leaving singles

2001-05-22 Thread Dennis Gearon
I've tried this and it doesn't work, any ideas? $illegal_chars="[^a-zA-Z0-9._\\:]|"; $dir="c:\\t.e.s.t.7."; $dir_name = ereg_replace($illegal_chars, "", $dir_name); it removes the single double slash after :, as well. this is on version 4.0.3pl1 would some people please test this on th