vs2010:

Enter: Ctrl+H

Find what:

:b*$


Replace with: [Empty]


Look in: Current Document

Find Option: Use Regular Expressions
Click: Replace All


解释一下正則表達式:

:b*$

$表示一行的结束,:b表示空格或tab,*表示0个或多个


在 Find What 编辑框中。点击右側的小箭头,能够打开正則表達式符号表。

使用正則表達式差点儿能够满足大部分查找需求,以下是完整的符号列表,

选自MSDN:


http://msdn.microsoft.com/en-us/library/aa293063(VS.71).aspx

相关文章:

  • 2021-09-27
  • 2022-02-07
  • 2021-05-21
  • 2022-12-23
  • 2022-01-14
  • 2021-11-27
  • 2021-08-23
猜你喜欢
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案