[tpm] Another Regex question

Fulko Hew fulko.hew at gmail.com
Tue Oct 23 11:10:56 PDT 2012

On Tue, Oct 23, 2012 at 1:41 PM, Chris Jones <cj at enersave.ca> wrote:

... snip ...

> The original regex was finding the files partially correctly.  It was
> finding all files ending with .inp or .pd2.  My problem is that I was trying
> to do too many things with one regex.
> The program creates a number of "copies" of the original input files and
> runs those copies as parametric runs.  Those parametric files are not
> removed as they are useful for quality control.
> So the original input files might be:
> E4 Trenton - Proposed.inp
> E4 Trenton - Proposed.pd2
> The program will create parametric files:
> E4 Trenton - Proposed - CompError4.inp
> E4 Trenton - Proposed - CompError4.pd2
> or
> E4 Trenton - Proposed - MNECB Reference Building.inp
> In addition to a whole bunch of files with extensions not .inp or .pd2.

Sorry, I didn't appreciate what you were trying to say, when I first read it.
So what _is_ the file naming rule?

anything hyphen anything (optional white-space hyphen followed by
stuff) dot inp|pd2  ???

More information about the toronto-pm mailing list