/(.*)\.([^\.]+)/
In reply to I'm not good at regex's by gryng in thread Probably silly regex question / not so silly regex question by theorbtwo