> and "." (period) occurs at least once.

Should be 
llValid = (Occurs("@", lcAddress) = 1) and (Occurs(".", lcAddress) >0)

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Alan
Bourke
Sent: Wednesday, 8 January 2014 3:14 AM
To: [email protected]
Subject: Re: Regular Expression Search



On Tue, Jan 7, 2014, at 03:36 PM, Laurie Alvey wrote:
> I am trying to do some basic format validation on a string which 
> purports to be an email address. I want test that "@" occurs once and 
> once only and "." (period) occurs at least once.

If it's as simple as that then:

llValid = (Occurs("@", lcAddress) = 1) and (Occurs(".", lcAddress) > 1)

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to