在Openoffice中搜索和替换选项卡键

时间:2016-01-24 13:13:22

标签: openoffice.org

我已经编写了下一个代码来查找替换字符串,我需要使用此代码查找“=”并替换为tab键,我尝试使用“\ t”但这不起作用,你能帮我吗?请?什么是用于openoffice宏的字符tab键?

{ ProductType = "Apple", Underlining = [{ ProductID = "Stark", Price = 21 }] } 
{ ProductType = "Apple", Underlining = [{ ProductID = "Stark", Price = 21 }, { ProductID = "Jonagold", Price = 12 }] } 
{ ProductType = "Pear", Underlining = [{ ProductID = "Williams", Price = 33 }] } 
{ ProductType = "Pear", Underlining = [{ ProductID = "Williams", Price = 33 }, { ProductID = "Beth", Price = 22 }] } 
{ ProductType = "Apple", Underlining = [{ ProductID = "Stark", Price = 43 }, { ProductID = "Jonagold", Price = 12 }] } 
{ ProductType = "Pear", Underlining = [{ ProductID = "Williams", Price = 55 }, { ProductID = "Beth", Price = 22 }] } 
{ ProductType = "Pear", Underlining = [{ ProductID = "Williams", Price = 55 }, { ProductID = "Beth", Price = 66 }] } 
{ ProductType = "Apple", Underlining = [{ ProductID = "Stark", Price = 43 }, { ProductID = "Jonagold", Price = 77 }] } 
{ ProductType = "Apple", Underlining = [{ ProductID = "Stark", Price = 43 }, { ProductID = "Jonagold", Price = 25 }] } 
{ ProductType = "Pear", Underlining = [{ ProductID = "Williams", Price = 77 }, { ProductID = "Beth", Price = 66 }] } 
{ ProductType = "Pear", Underlining = [{ ProductID = "Williams", Price = 77 }, { ProductID = "Beth", Price = 13 }] } 
{ ProductType = "Apple", Underlining = [{ ProductID = "Stark", Price = 21 }, { ProductID = "Jonagold", Price = 25 }] } 

2 个答案:

答案 0 :(得分:2)

alfetta是正确的 - 只需启用RegularExpression

即可
  oSearch.SearchRegularExpression = TRUE

\t作为replaceStr正常工作,替换为Tab。

答案 1 :(得分:1)

您应该能够找到一个带有搜索和替换的选项卡,使用\ t并选中“正则表达式” 在开始查找&替换StrgF