Re: Regex to find group of image files

2004-03-03 Thread Maruf Çetin
> > 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

AW: Regex to find group of image files

2004-02-19 Thread B. Fongo
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 @

Re: AW: Regex to find group of image files

2004-02-18 Thread R. Joseph Newton
"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

Re: Regex to find group of image files

2004-02-18 Thread Rob Dixon
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); >

Re: AW: Regex to find group of image files

2004-02-18 Thread R. Joseph Newton
"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

AW: Regex to find group of image files

2004-02-18 Thread B. Fongo
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

Re: Regex to find group of image files

2004-02-17 Thread Rob Dixon
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

Regex to find group of image files

2004-02-17 Thread B. Fongo
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