Comment #0 by kasamia.o.kasatua — 2015-04-30T04:41:51Z
The following code describes the problem:
import std.stdio;
import std.regex;
void main() {
auto ctr = ctRegex!(r"^[CF]$", "i");
foreach(line; stdin.byLine) {
foreach(m; line.matchAll(ctr)) {
writeln("match: ", m.hit);
}
}
}
--
the simple regex should match: C, c, F, f
but only C, c, F will match.
and if you switch the order inside the char class: [FC]
only F, f, C are matched, but not c
It seems like there's something wrong with the last char that should match.
The same problem happens when using regex obj too.