$Text = FileRead("email.txt")
$EmailFound = StringRegExp($Text, "([A-Za-z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})", 3)
if @extended = 1 Then
for $i = 0 to UBound($EmailFound) - 1
MsgBox(0, "E-Mail", $EmailFound[$i])
Next
Else
MsgBox(0, "E-Mail", "No E-Mail addressess found in the supplied text")
EndIf