Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: email
Posted: Mon May 25, 2015 04:55 PM
I found on xharbour reference this sample :
// The example tests if a text string contains an eMail address.
// 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"
IF HB_RegExMatch( cRegEx, cText, .F. )
? "Text contains eMail address"
ELSE
? "Text contains no eMail address"
ENDIF
RETURN
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com