| SitePoint Sponsor |

Last edited by JordanTLClive; Jun 5, 2001 at 20:28.
-Jordan





Try doing a search for email validation on this forum.
As for the regular expression you need.
PHP Code:$url = "<br>[url]www.somedomain.com[/url]";
/*
This first one prints "has it" if the
[url]http://[/url] or [url]https://[/url] is present
*/
print (eregi("(http|https)://", $url)) ? "has it<br>" : "doesn't have it<br>";
/*
This one prints "has spaces" if the
domain has space in it.
*/
print (eregi("[[:space:]{1}]", $url)) ? "has spaces<br>" : "doesn't have spaces<br>";
Please don't PM me with questions.
Use the forums, that is what they are here for.
Bookmarks