some more useful informations You can find here :
( a very good description about the Email-structure )
( A German Website )
http://aktuell.de.selfhtml.org/artikel/ ... /index.htm
Regards
Uwe

Code: Select all | Expand
// The example extracts an eMail address from a text string.
// The search is case insensitive although the RegEx defines
// character classes only with upper case letters.
PROCEDURE Main
LOCAL cRegEx := "[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}"
LOCAL cText := "Send your request to info@xharbour.com " + ;
"for more information"
LOCAL cEmail, nStart, nLen
cEmail := HB_AtX( cRegEx, cText, .F., @nStart, @nLen )
? cEmail // result: info@xharbour.com
? nStart // result: 22
? nLen // result: 17
RETURN