From: Holly J. S. <so...@mu...> - 2000-07-09 03:20:17
|
On Sat, 8 Jul 2000, Michael wrote: > missed something.. the names are all the same amount of characters and > numbers..... such as cam2-123456.jp and cam2-123456Thumb.jpg so was looking > for something (wildcard?) to change $files to cam2-123456.jpg instead of the > Thumb one.. Wildcard in perl for 0 or more matches is * for 1 or more matches is + for 1 or 0 matches is ? So, a match for $file =~ /cam2-(\d)+.jpg/ will match on cam2-12345.jpg (the \d is a metacharacter for digits), but not cam2-12345Thumb.jpg. -Holly |