TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MARTIN GREGORIE
from: THE NATURAL PHILOSOPHER
date: 2020-03-19 17:48:00
subject: Re: Regexes and C

On 19/03/2020 13:18, Martin Gregorie wrote:
> So, can any of you do better, i.e. write a regex that CAN validate the
> syntax of an e-mail address in terms of its structure and the set of
> permitted characters on the username and domain parts (the permitted
> character sets are not the same).
No. That's why I don't bother with regex, ever.

Its far faster for me to write a series of tests in 'C' then try and
work out what random gobbledygook will do the job in regex.

Regex is for nerds to impress other people with. Its not a smart way to
program.

Same as SQL. By the time you have taken a day to write the SQL query
that does everything you want, only to realise it takes 50 minutes to
complete, you could have written most of  it in C and got it down to 3
seconds...

--
“Those who can make you believe absurdities, can make you commit
atrocities.”

― Voltaire, Questions sur les Miracles à M. Claparede, Professeur de
Théologie à Genève, par un Proposant: Ou Extrait de Diverses Lettres de
M. de Voltaire

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.