Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email validation
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00508552
Message ID:
00509069
Views:
37
>The Regular Expression parser from the Windows Script Host makes this a snap. In fact, this was one of the problems that Ed Rauh and I addressed in our final article on the WSH in past March's issue of the VFUG (www.vfug.org) newsletter. All you need is
oRE = CREATEOBJECT("VBScript.RegExp")
>oRE.Pattern = "\w+\@\w+\.\w+"
>llresult = oRE.Test(tceMailAddr)
The article and the one's that preceded it are available on-line at VFUG.

Try this pattern, it allows for "-" and "_" in the emails.
oRE.Pattern = "[\w-_]+\@{1}[\w-_]+\.\w+"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform