in reply to Valid date in regex only
mAsterdam wrote:
They had to validate a date in a string with only a regular expression (and one only), due to environmental/tool contraints.
With all due respect, it's difficult to know how to answer this. What is their tool? Perl regular expressions tend to be much more expressive than most other language's regexen, so a direct conversion from a Perl regex to another language's regex may not be possible. If you just want comments on the Perl aspect, well, what you are doing is impressive, but it's the wrong tool for the job. If you want to know how you can use this for the other language, we can't answer that. Heck, for all I know, the other tool could use a DFA engine instead of an NFA engine, thus making a direct comparison very problematic.
Incidentally, judging from your email address and your username, I couldn't help but wonder if you have any association with the Hippies from Hell. If so, tell Willem Hengveld that "Curtis" says "hi" :) (I used to work with him)
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Ovid) Re: Valid date in regex only
by mAsterdam (Sexton) on Mar 23, 2002 at 03:36 UTC |