Rename with Regex - stop at first occurrence

Suppose I have a file named somename.jpg.png which I want to rename by selecting the somename portion and applying my choice of extension.

Rename PATTERN "(.+)\." TO "\1.png" REGEXP doesn't work because it's "greedy"

Is there a way of forcing it to match the first occurrence of a period rather than the last?

Make the capture group non-greedy with a ? or use [^.] instead of ..

Rename PATTERN "(.+?)\." TO "\1.png" REGEXP

or

Rename PATTERN "([^.]+)\." TO "\1.png" REGEXP

Thanks @lxp. I so seldom use Regex that I always battle with the finer points of syntax. I tried monkeying with ? but was putting it in the wrong place. Your second method hadn't occurred to me. Neat.