On Tue, Feb 06, 2018 at 02:29:07PM -0800, Walter Bright via Digitalmars-d wrote: > On 2/6/2018 12:30 PM, Steven Schveighoffer wrote: > > The regex in question I think is to ensure an email address like > > abc@192.168.0.5 has a valid IP address. The D1 function doesn't > > support that requirement. > > > > I admit, I've never used it, so I don't know why it needs to be so > > complex. But I assume some people depend on that functionality. > > Regex is well known to not always be the best solution for string > processing tasks. For example, it does not work well at all where > recursion is desired, and nobody uses regex for lexer in a compiler.
Are you sure? What about lex and its successors, like flex? Of course, one could argue that the generated code isn't strictly a regex implementation in the same way as std.regex... but isn't that just a QoI issue? T -- Life would be easier if I had the source code. -- YHL