in reply to Re: Regex for zip files.
in thread Regex for zip files.

The thing is though it's matching both. Where I want it to match one or the other when it's going though the array.

Replies are listed 'Best First'.
Re^3: Regex for zip files.
by Your Mother (Archbishop) on Jun 09, 2009 at 20:52 UTC

    It's not matching both. Try running my version and looking at the way ikegami broke it down above too. Make sure you are using strict and warnings in your code; they catch tons of simple problems.

      Your code didn't seem to work Your Mother. What I am doing is going though an array and matching zip files renaming them, then matching zip.meta and then renaming. It appears with the orignal code I had was matching zip on the first pass, then matching zip and zip.meta.