compile-time regex redux

Walter Bright newshound at digitalmars.com
Wed Feb 7 10:33:16 PST 2007


Bill Baxter wrote:
> That would help I suppose, but at the same time regexps themselves have 
> a tendancy to end up being 'write-only' code.  The heavy use of them in 
> perl is I think a large part of what gives it a rep as a write-only 
> language.   Heh heh.  I just found this regexp for matching RFC 822 
> email addresses:
>     http://www.regular-expressions.info/email.html
> (the one at the bottom of the page)

I agree that non-trivial regexes can be pretty intimidating - but 
writing templates to do the same will be even more intimidating.



More information about the Digitalmars-d mailing list