Function Fcomprobarmail($mail)
{
#compruebo la integridad y validez del e-mail
return ($mail -notmatch "[´"",/ñ ¿!\?¢();$]" -and $mail -imatch "\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b")
}
$check=Fcomprobarmail $mail
if ($check -eq $True)
{
write-host "$mail es correcto" -fore green
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.