Replacing commas with tabs in KWrite
James Richard Tyrer
tyrerj at acm.org
Tue Feb 5 07:36:12 GMT 2008
Frank Bures wrote:
> Matthew Woehlke wrote:
>> Frank Bures wrote:
>>> I need to edit a comma delimited database file so that it becomes tab
>>> delimited. In OS/2 I just globally searched for ',' and then replaced it
>>> with ASCII [09] character by entering <Alt-0-9>.
>>> I cannot do that in KWrite as KWrite does not interpret <Alt> at all
>>> and just enters "09" in the 'Replace with' field.
>>> When I try to enter <Tab>, it just takes me to another field.
>>>
>>> How do you replace anything with unprintable characters in KWrite?
>>> (short of using vi of course :-))
>> Use KDE4 :-). katepart in KDE4 should support the usual set of C-like
>> escapes; in this case, \t, \x0009 or \0011 should all work.
>>
>
> It's funny, it works the other way round. I can search for tabs by
> entering "\t" and activating regexp button. Then I can replace it with any
> printable character. However I cannot replace anything with "\.".
> I am talking KDE 3.5 and KWrite.
This isn't actually strange. You are using a regular expression for
your search but only entering characters for the replace. So, '\t' is
legal for HT in a Qt regular expression, but for the replace, it is just
the characters '\' and 't'.
>
> Well, back to the trusted vi I go :-)
You can do this with KWrite, see my previous posting.
--
JRT
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list