Is str ~ regex the root of all evil, or the leaf of all good?

Daniel Keep daniel.keep.lists at gmail.com
Thu Feb 19 06:47:07 PST 2009



Michel Fortin wrote:
> [snip]
> 
> And if any of you complains about the extra verbosity, here's what I
> suggest:
> 
>     auto s = replace("abracazoo", re"a([b-e])"g, se"A$1");
> 
> Yes, syntaxic sugar for declaring regular expressions.

Didn't D previously have special regex literals that got dropped for
being unpopular and/or hated?

  -- Daniel



More information about the Digitalmars-d mailing list