To echo Gene's point, I have a VFP prg that validates email addresses. It's way 
more verbose but I can make sure I am testing all the rules around valid email 
addresses.

--
rk

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Gene 
Wirchenko
Sent: Tuesday, January 07, 2014 1:56 PM
To: [email protected]
Subject: Re: Regular Expression Search

At 08:50 2014-01-07, Laurie Alvey <[email protected]> wrote:
>I thought of doing something similar but thought that a regular 
>expression would be simpler.

      <SNICKER>  Spot the famous quote!

      Some people, when confronted with a problem, think
      "I know, I'll use regular expressions."   Now they have two problems.

      Regexes sure get talked up, but they can easily turn into write-only 
code.  I have used them for simple expressions.  Rather than try to handle 
complex expressions with one regex, I use simple regexes with some other 
processing and glue code.

Sincerely,

Gene Wirchenko


_______________________________________________
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/DF1EEF11E586A64FB54A97F22A8BD044229CE9E0CF@ACKBWDDQH1.artfact.local
** 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