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

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

/*
Check if a string is valid filename
*/

if (kpreg_is_valid_filename("file.php")) // valid
 echo("Valid!");
else
 echo("Invalid!");

?>
Return current item: K-Pregs