isurl

This would be useful for Hotlinks for example. Please let me know if there is a way to do this already, a simple way, not a complex way. Like... if ($1 isurl) just like ($1 isalnum) works.