works, thanks
but how about when i write "www.google. com" or "www. address . com" i mean, those spaces/blanks
EDIT: ok i tried something and seems to work xD
PHP Code:
([a-z0-9\-]+\.|[a-z0-9\-]+\ )+[a-z]{2,4}
but even if i write "ssssss.test" or "hahaha.go" it says it matches..
EDIT2:
finally got something like this, at first look seems alright but there is still the problem with the spaces..
PHP Code:
([a-z0-9\-]+\.|[a-z0-9\-]+\ )+(com|org|net|mil|info|edu|COM|ORG|NET|MIL|EDU|INFO)
__________________