I am first curious as to where the information you have provided came from. If you have already extracted just that string, then it might be a simple regexp to extract that information.
Second, I would like to know whether you already have determined that the two file names are using said identifiers. Namely, I would like to know how you're going to plan on determining the difference between a BASE_ID and a REVISION_ID.
I've had to do something similar with a parsing program that I have. The details are not important, but I had it set up like this (I'll use you're info). You'll notice that in this situation, I didn't need a regexp -- but you might need to (and thus the reason why the above information might be important). If you're creating these file names, just use the joining functions.
Template: myfile!BASE_ID!.xxx
#!/usr/bin/perl
use strict;
my $Base_ID = getBaseID(); # some subroutine that gets this
my $filename = "myfile" . $Base_ID . ".xxx";
print $filename;
# eof
--Coplan
|