Help with Rename using Regular Expressions

I need to rename files:
x.jpg y
to
x.jpg

in other words, I need to remove "y" which can consist of any number of characters.

I guess that the only way is to use regular expressions? What would the expressions need to be?

TIA

So what you are saying is, you have filenames of the form:

x.jpg

and you want to strip off the ?

If so, just use the "standard rename" mode, with:

old name: .jpg
new name: *.jpg

[quote="jon"]So what you are saying is, you have filenames of the form:

x.jpg

and you want to strip off the ?

If so, just use the "standard rename" mode, with:

old name: .jpg
new name: *.jpg[/quote]

Correct. Oh that was trivial!
Thanks!

I had tried to use
old name: .jpg
as suggested above, but nothing was selected in the preview so I thought that it was not working. However, when I also added
new name: *.jpg,
the files were selected.

Why don't the files get selected in the preview until the "new name" is added? With Find/Replace they are selected after the Find field is populated.

Because you can replace a sub-string with "nothing", whereas in normal rename mode a new name pattern is also needed (otherwise the new filenames would end up blank).