快速替换对话框中的Visual Studio 2010正则表达式 [英] Visual Studio 2010 Regular Expressions in Quick Replace Dialog

查看:132
本文介绍了快速替换对话框中的Visual Studio 2010正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我发现无法想出一对正则表达式来删除多个空格的序列并用单个空格替换它们加载到Visual Studio 2010中的HTML文档。



我已阅读所有帮助(包括使用:b 应该匹配一个空间),我无法让它工作。有人可以提供任何帮助吗?这让我疯了。



亲切的愿望,Patrick

Hi,

I am finding it impossible to come up with a pair of regular expressions to remove sequences of more than one space and replace them with single spaces in a HTML document loaded into Visual Studio 2010.

I''ve read all the help (including using :b which is supposed to match a space), and I just can''t get it to work. Can anyone offer any help with this, please? It''s driving me nuts.

Kind wishes, Patrick

推荐答案

你的搜索模式应该是:b + (一个或多个空格),您只需替换一个空格字符或其他任何字符串。
Your search pattern should be :b+ (one or more spaces), and your replacement just a single space character, or whatever other string you want.


这篇关于快速替换对话框中的Visual Studio 2010正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆