There's a broken example for D2 in the samples folder. It uses D1 code, so it needs to be translated properly to D2. char[] -> string, string.find -> algorithm.find (+ algo's find is different) and some other tidbits. I'll see if I can try to fix it.