You also can try this one: ^.*?\.\s*(.*?\.).*$|^.*$ Replace with: $1 Explanation: ^ - start of string $ - end of string . - any single character \s - any whitespace character \. - period "." * - zero or more *? - zero or more ungreedy (lazy) | - OR
-- <http://forum.pspad.com/read.php?2,67907,67911> PSPad freeware editor http://www.pspad.com