>
> I thought I could solve the regex issue a different way, but failed.
>
> My $path = "Mazda.1.jpg ";
>
> ($file, $dir, $ext) = fileparse ($path, '\..*' );
>
> #I'm trying to get Mazda.2.jpg and Mazda.3.jpg.
> # $file contains Mazda, so why does this regex fail to deliver
> Mazda.2.jpg
> # a
I thought I could solve the regex issue a different way, but failed.
My $path = "Mazda.1.jpg ";
($file, $dir, $ext) = fileparse ($path, '\..*' );
#I'm trying to get Mazda.2.jpg and Mazda.3.jpg.
# $file contains Mazda, so why does this regex fail to deliver
Mazda.2.jpg
# and Mazda.3.jp?
my @
"R. Joseph Newton" wrote:
>
Samll correction to the sample code. I started out using $pics as the name for the
reference to the outer hash, and forgot to change one instance when I changed this
to $views.
> my $views = {};
> while () {
>my @name_elements = split /\./;
>$views->{$name_el
B. Fongo wrote
>
> I have several groups of files in a directory, like:
>
> Mazda.1.jpg, Mazda.2.jpg, Mazda.2.jpg
> Toyota.1.jpg, Toyota.2.jpg, Toyota.3.jpg
> Voyager.1.jpg, Voyager.2.jpg, Voyager.3.jpg
> Etc. etc
>
> # First of, I'll get the list of all files.
>
> my ($image, @bigger, @smaller);
>
"B. Fongo" wrote:
> I have several groups of files in a directory, like:
>
> Mazda.1.jpg, Mazda.2.jpg, Mazda.2.jpg
> Toyota.1.jpg, Toyota.2.jpg, Toyota.3.jpg
> Voyager.1.jpg, Voyager.2.jpg, Voyager.3.jpg
> Etc. etc
>
> # First of, I'll get the list of all files.
Jumping in too fast here, I would
Ursprüngliche Nachricht-
Von: Rob Dixon [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 17. Februar 2004 23:44
An: [EMAIL PROTECTED]
Betreff: Re: Regex to find group of image files
B. Fongo wrote:
>
> I'm having tough time trying to solve a problem at some regex. I have
> several pictur
B. Fongo wrote:
>
> I'm having tough time trying to solve a problem at some regex. I have
> several pictures for cars, and want to use a script to create some HTML
> files using those pictures.
> For each car, I have three pictures named e.g. jeep.1.jpg, jeep.2.jpg
> and jeep.3.jpg.
>
> What am try
Hello
I'm having tough time trying to solve a problem at some regex. I have
several pictures for cars, and want to use a script to create some HTML
files using those pictures.
For each car, I have three pictures named e.g. jeep.1.jpg, jeep.2.jpg
and jeep.3.jpg.
What am trying to do now, is to u