问题标签 [visual-build-professional]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
visual-build-professional - 如何用正则表达式替换文本文件?
我想用一个更新的版本号替换一个版本号(即从 SVN 获取它,它工作正常)。出于测试目的,我尝试用简单的东西替换我发现的东西,但即使这样也不起作用。
这个正则表达式看起来不错(例如在https://regex101.com/中测试过)并且正确匹配我的版本号。
正则表达式:
要匹配的文本(不匹配的):
标题="我的标题 1.0.0"
根据https://regex101.com/这应该有效。但是 Visual Build 找不到任何匹配项,也没有进行替换。
我可以确认文件访问正常,因为 Visual Build 将文本“替换时出错”添加到指定文件。
我正在使用 Visual Build Professional v10。