All pastes #927573 Raw Edit

Someone

public text v1 · immutable
·published 2008-03-04 12:02 UTC
rendered paste body
<?php
$email = "someone@example.com";
if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
  echo "Valid email address.";
} else {
  echo "Invalid email address.";
}
?>