如何在LibreOffice Calc中用“换行”替换字符?

时间:2018-12-11 00:02:39

标签: newline libreoffice-calc

例如,我有:

XNamespace nsSoap = "http://www.w3.org/2003/05/soap-envelope"; XNamespace ns = "link-to-namespace"; // Look for the "Fault" element in the response. If present, there was an error. var fault = result.Root.Element("{" + nsSoap + "}Body").Element("{" + ns_soap + "}Fault"); if (error != null) { var codeWithNs = error.Element("{" + nsSoap + "}Code").Element("{" + ns_soap + "}Value").Value; var codeSplit = codeWithNs.Split(':'); var code = codeSplit.Length == 2 ? codeSplit[1] : codeSplit[0]; if (code == "InvalidUsernameOrPassword") { throw new InvalidUsernameOrPasswordException(); } else { throw new Exception("Something went wrong."); } }

,并想用“换行”替换我文档中的所有Line 1 * Line 2 * Line 3来获取此信息:

*
Line1
Line2

这可能吗?

1 个答案:

答案 0 :(得分:0)

由于在“查找与替换”中取消选中“通配符”似乎没有什么区别,因此除了脚本之外,您似乎有两种选择:

1)手动选择每个*

Ctrl + 输入

2)应用公式来创建数据的单独版本:

=SUBSTITUTE(A1," * ",CHAR(10))