c# Trim(row.Replace(""& vbLf, "").Replace(""& vbTab, "").Replace(""& vbCr, "").Replace(""& vbCr, ""))=""
时间: 2023-08-24 21:09:24 浏览: 111
java trim()
这段代码是用来去除字符串中的空格、制表符和换行符的。它使用了trim方法去除字符串首尾的空白字符,然后使用replace方法将字符串中的空格、制表符和换行符替换为空字符串。其中/\s/g是一个正则表达式,用于匹配任何空白字符。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [js replace()去除代码中空格的实例](https://download.csdn.net/download/weixin_38665122/13587987)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [完全自己编写的适用于 .Net7 简单的JSON序列化类的VB实现(.net7 aot 编译后也能序列化自定义类)](https://blog.csdn.net/u011527696/article/details/128019229)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文