Regexp help (possible bug?)

davidb ta-nospam-zz at gmx.at
Sat May 26 10:00:48 PDT 2007


gareis schrieb:
> Argh -- forget that. I forget that regexps require an extra level of escaping;
> that should have been:
> ---
> std.regexp.find(foo, "[^\\\\]#");
> ---
> 
> This is why I ask now rather than submitting bug reports first.
> 
> Thanks!

---
int i = std.regexp.find(foo, r"[^\\]#");
---
works as well

david


More information about the Digitalmars-d-learn mailing list