Location: PHPKode > scripts > CheckRegExp > checkregexp/exemple.php
<?php 
include('CheckRegExp.php');

function echoLine($string,$html=true){
	$del = $html?"<br />":"";
	echo $string.$del;
}

echoLine("CORREO: ".CheckRegExp::checkMail("hide@address.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"));


?>
Return current item: CheckRegExp