Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10190425
core2.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
347 B
Referenced Files
None
Subscribers
None
core2.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jun 26, 05:22 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2759866
Default Alt Text
core2.php (347 B)
Attached To
Mode
rTOOLS Nasqueron Tools
Attached
Detach File
Event Timeline
Log In to Comment