Location: PHPKode > scripts > K-Pregs > k-pregs/examples/test.php
<?php

require("../kpregs.php");

/*
Check if a string is valid url
*/

if (kpreg_is_valid_url("http://www.google.com/")) // valid
 echo("Valid!");
else
 echo("Invalid!");

?>
Return current item: K-Pregs