Searching and renaming files with dashes

This may be an easy one but I'm looking to do a rename of a common file format we have in the office:

(2-3 letters)-(3-4 numbers)-(2-4 letters).mpg

An example of above might be:

cen-217-ac.mpg

I'd like to take the above's dashes out so it's:

cen217ac.mpg

Reading the help I've gotten this far although some of it may be wrong:

  • search for extension $mpg
  • search for dashes -
  • rename without dashes &\1\2\3\4

Do I need the \4 for the extension? Am I even in the ballpark? Ugh ...

Also, once I have the expression correctly how do I tell opus that's what I want to do. I see the "advanced" place in rename dialog but no place to enter expression.

Sorry if above is stupid.

Create a button with the following command:

rename PATTERN="-" TO=~ FINDREP

[quote]
tanis wrote:
Create a button with the following command:

rename PATTERN="-" TO=~ FINDREP[/quote]

Woooohooo! I was making it much more difficult than it needed to be. Thanks man, you're the greatest!