TextPad - Tab-delimited file changed to comma-delimited

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
rockycj
Posts: 1
Joined: Fri Jul 23, 2010 6:42 pm

TextPad - Tab-delimited file changed to comma-delimited

Post by rockycj »

I have a tab-delimited file and I need it changed to a comma-delimited (CSV) file. So all of the tabs between each column need to be replaced with a comma instead. Is there a way to do this within TextPad?

Could someone help me or give me some instructions on how to do this?

Thank you!

CC
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Use Search | Replace... (<F8>).

You can search for a tab by copying a literal tab from anywhere (for example, the document you are currently editing) and pasting it into the Find what edit box. Alternatively, you can use regular expressions and search for \t.

Unfortunately, TextPad only recognises escape sequences such as \t when it's searching using regular expressions (although whether it should use regular expressions and whether it should interpret escape sequenecs are distinct questions).

So you can use
Find what: <tab> (where <tab> is a lteral tab)
Replace with: ,

Replace All
or
Find what: \t
Replace with: ,

[X] Regular expression

Replace All
Post Reply