Page MenuHomeDevCentral

core2.php
No OneTemporary

core2.php

<?php
function is_mail ($string) {
return preg_match('/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z0-9]{2,4}$/', $string);
}
/*
Unit testing ->
1 is_mail("dereckson@gmail.com");
1 is_mail("dereckson@trustspace.42");
1 is_mail("dereckson@gmail.a.a.a.a.a.a.a.ax.org");
1 is_mail("dereckson+wazza@gmail.com");
0 is_mail("dereckson`ls`@gmail.com");
*/

File Metadata

Mime Type
text/x-php
Expires
Sat, Aug 8, 09:01 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3926114
Default Alt Text
core2.php (347 B)

Event Timeline