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!