regex with literal (ie automatically replace '(' with '\(', etc) )
Diggory
diggsey at googlemail.com
Thu May 30 09:34:14 PDT 2013
> Your suggestion does not work; try for yourself by replacing
> the $$ by \$
> in my code. Is that a bug in std.regex' doc?
> eg:
> replace("",regex(``),`\$`);
> => invalid format string in regex replace
>
> However everything works fine with $$, see my code above.
Either the doc or the code should probably be changed then so
they are consistent.
More information about the Digitalmars-d-learn
mailing list