Find / replace on CR/LF in TextPad
Posted: Wed Jan 11, 2012 1:46 pm
Hi, hoping someone can help me.
I cannot figure out how to turn this:
111-11-1111
222-22-2222
333-33-3333
into this:
'111-11-1111','222-22-2222','333-33-3333'
in TextPad 5.4.2.
I used to have UltraEdit32 on my old machine and that allowed you to do a find on CR/LF (Hex 0D0A) and replace with space. Then you could do a find on space and replace with ',' (single quote, comma, single quote) but I don't have UltraEdit32 on my new machine and I cannot figure out a way to do this in TextPad. The Hex search in TextPad doesn’t appear to work. You select the Hex radio button and enter 0D0A and it looks for that literal string even with the Hex radio button selected.
Any suggestions? This is something I need to do a lot.
Thanks!!
I cannot figure out how to turn this:
111-11-1111
222-22-2222
333-33-3333
into this:
'111-11-1111','222-22-2222','333-33-3333'
in TextPad 5.4.2.
I used to have UltraEdit32 on my old machine and that allowed you to do a find on CR/LF (Hex 0D0A) and replace with space. Then you could do a find on space and replace with ',' (single quote, comma, single quote) but I don't have UltraEdit32 on my new machine and I cannot figure out a way to do this in TextPad. The Hex search in TextPad doesn’t appear to work. You select the Hex radio button and enter 0D0A and it looks for that literal string even with the Hex radio button selected.
Any suggestions? This is something I need to do a lot.
Thanks!!