in reply to validating string length with a regular expression
but in this case I need one regex and nothing more.I always question design goals such as these. I distrust question posers who give such artificial requirements. It's a bit like watching an episode of MacGuyver, in how the responses come out.
Trouble is, programming isn't MacGuyver. We do have the ability to include a call to length somewhere, so why the artificial requirement?
Two reasons come to mind:
I smell homework. Please prove otherwise, by stating the bad design decision more fully.
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: •Homework alert! Re: validating string length with a regular expression
by jehuni (Pilgrim) on Mar 18, 2002 at 18:14 UTC | |
by merlyn (Sage) on Mar 18, 2002 at 19:28 UTC | |
Re: ?Homework alert! Re: validating string length with a regular expression
by buckaduck (Chaplain) on Mar 18, 2002 at 18:16 UTC | |
by jehuni (Pilgrim) on Mar 18, 2002 at 18:26 UTC | |
Re: •Homework alert! Re: validating string length with a regular expression
by dragonchild (Archbishop) on Mar 18, 2002 at 17:20 UTC |