std.regexp and std.file listdir

jicman jic at spam.me
Wed Aug 23 22:58:26 PDT 2006


I have this program:

import std.stdio;
import std.file;
import std.regexp;

int main(char[][] args)
{
  char[][] f = listdir(r"d:\tmp",RegExp(r"*.pdf","i"));
  writefln(f.length);
  return(0);
}

When I run it, I get,

Error: *+? not allowed in atom

Why?

thanks,

josť





More information about the Digitalmars-d-learn mailing list