Hi,
I'm trying to use eregi_replace to check a user-submitted URL, but I
keep getting the following error message:
Warning: Invalid range end in /var/www/html/_db_db/db_input.php
This what I'm using:
$pattern = "(http://)?([^[:space:]]+)([[:alnum:]\.-_?/&=])";
$replace = "http://\\2\\3";;
$URL = eregi_replace($pattern, $replace, $URL);
I've stared at this expression for too long and can't figure out what's
wrong.
Thanks,
J. Younker

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to