I am trying to check for valid email and url adresses with eregi, but i cant find out what to check: heres my code:
if(!eregi("([a-z0-9])*@([a-z0-9])*(\.[a-z0-9])*", $email))
theres one problem, does it match RFC standard? I tried finding answers on I think i miss some characters, which are valid but are not matched in the above statement.
This is the url check:
if(!eregi("^http://[a-z0-9]*(\.[a-z0-9])*", $site))
It is also not complete.
please help... MiQ
mick@nederland.net
wezine.vandermostvanspijk.nl
currently installed: html, JavaScript, dhtml, css, php, mysql, postgresql, xml, linux, apache
about to install: java, c++
if(!eregi("([a-z0-9])*@([a-z0-9])*(\.[a-z0-9])*", $email))
theres one problem, does it match RFC standard? I tried finding answers on I think i miss some characters, which are valid but are not matched in the above statement.
This is the url check:
if(!eregi("^http://[a-z0-9]*(\.[a-z0-9])*", $site))
It is also not complete.
please help... MiQ
mick@nederland.net
wezine.vandermostvanspijk.nl
currently installed: html, JavaScript, dhtml, css, php, mysql, postgresql, xml, linux, apache
about to install: java, c++