Otto,
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
// 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
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 89 guests