Try find/change grep tab
find what: .\w+$
change to: leave blank
change format: select the style
Salah, did you really mean \.\w+$ to specifically pick up a file extension? The . needs to be "escaped" or it's the "any character" wildcard and your expression will pick up the last word of normal text and the preceeding whitespace in a paragraph.
Your are right Peter the \.\w+$ is the correct string, thanks.
Peter, on the other hand how a bout : .jpg$ it's do the job?.