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._\
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
2 matches
Mail list logo