You should try
var_dump(ereg('C:W', 'C:\\WINNT\\TEMP\tst5B.tmp'));
The reason is that in simple quotes, antislashes don't have to be
escaped. Still, they need to be escaped in a regular epr ie in the first
argument of ereg() (the first and the secon argument are both string,
but in the reakit
Why doesn't this match?
var_dump(ereg('C:W', 'C:WINNTTEMP\\tst5B.tmp'));
should print int(1), prints bool(false)
Thanks,
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2 matches
Mail list logo