<?php
include('CheckRegExp.php');
function echoLine($string,$html=true){
$del = $html?"<br />":"";
echo $string.$del;
}
echoLine("CORREO: ".CheckRegExp::checkMail("jordigirones@gmail.com"));
echoLine("IP: ".CheckRegExp::checkIP("192.168.12.31"));
echoLine("HEX COLOR: ".CheckRegExp::checkHexColor("#336AA9"));
echoLine("HEX NUMBER: ".CheckRegExp::checkHexNumber("336AA9"));
echoLine("INTEGER: ".CheckRegExp::checkInteger("12345"));
echoLine("FLOAT: ".CheckRegExp::checkFloat("12345.6789"));
echoLine("USER: ".CheckRegExp::checkUsername("jgirones"));
?>
|