@petee: 0. First of all its not a good practice to omit </DT> and </DD> tags, they can be a great help exactly at regexp replaces :D
1. Solution for your first problem can be broken down to 3 steps: a, join the lines with some unique string (i will use ``` = triple backtick symbols) b, do regexp replace c, split lines back to original state now in details: a, do a regexp of: $ ``` then select edit>lines manipulation>join lines after you selected the lines you want to join b, do a regexp of: <DT>(.*?)<A ([^>]+)>(.*?)<DD>(.*?)``` <DT>$1<A $2 SHORTCUTURL="$4" ID="">$3<DD>\n c, do a regexp of: ``` \n you are done. I believe this way you will manage with #2 problem. Regards, Adam -- <http://forum.pspad.com/read.php?2,40159,40185> PSPad freeware editor http://www.pspad.com
