Posted by deko on 02/13/07 03:00
>>'/^https?:\/\/[a-z0-9-]+(\.[a-z0-9-]+)+/i'
>
> With another delimiter you could avoid the escaping of slashes and make
> the regexp a bit more readable (IMHO):
>
> '#^https?://[a-z0-9-]+(\.[a-z0-9-]+)+#i'
Thanks for the tip.
I recently found this: http://baseclass.modulweb.dk/urlvalidator/viewsource.php
which looks interesting, if not overkill.
Navigation:
[Reply to this message]
|