Regex on files in a directory
Hi, I am trying to generate a script that goes opens a file based on a regex expression (file starts with "dat"). My code is listed below and it does not appear to be working. Is there something special that needs to be done when using regex on a list? dir = pick directory();
files = files in directory(dir);datafile = regex(files, "(^dat.*)","\1");
open(dir||datafile);