<?php $regexp='/[a-zA-Z0-9\\.\\-\\+]+@[a-zA-Z0-9\\.\\-\\+]+[\\.]([a-zA-Z0-9\\.\\-\\+]+[\\.])?[a-zA-Z0-9\\.\\-\\+]+/'; $text="you+me@some.domain-domain.com";
Standard input is empty
array(2) { [0]=> array(1) { [0]=> string(29) "you+me@some.domain-domain.com" } [1]=> array(1) { [0]=> string(0) "" } }