Button to change extension

i need to create button to prompt extension and rename all selected files with this extension.
can you help me ?

Here's the button command I use to do this:

@nodeselect Rename REGEXP PATTERN "(^.*)\.(.*)" TO "\1.{dlgstring|Enter new filename extension without . (period)}" AUTORENAME

thanks