I'm just trying to validate an url !
Without tracing or confiming it I just want

www.whatever.max 4 letters

This is what I had but its wrong ! :-))

function check_url($str) {
if (ereg("w{3}.^[a-z0-9-]+(\.[a-z0-9-]+)*$", $str)) {
return 1;
} else {
return 0;

I just know that some RegEx guru will go of course it should be .......


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

Reply via email to