lucy24 - 3:41 am on Feb 11, 2012 (gmt 0)
the rev-number is hexadecimal, hence the a-f
You might be able to say \h (I haven't tested), but since it can never be anything but hexadecimal, you wouldn't gain much by it. And oops, yes, I did miss the a-f detail.
So you're only dumping the "revNNN" part-- which could be js or css or an image-- and keeping everything else? You don't need parentheses around the [a-fA-F0-9]+ since it's just one piece. In RegEx terms, it's all one letter :) That saves you having to keep track of captures. If you need to keep the ".min", then combining your last two captures is a good way to do it.
Is that what you're aiming for?
Do any of your filenames contain a hyphen? Domain name doesn't matter, just the filenames. If not, you've got it made, because all you have to say is
and that will make the capture stop nicely before the -rev.