Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Visual Studio 属性表字符串替换与正则操作
用于在 Visual Studio 属性表或 MSBuild 中编写字符串替换表达式,支持大小写不敏感替换和正则表达式处理连续字符。
Passed 23 of 24 test cases with the skill, and 16 of 24 without it.
and 5 more in the full report
8 fixed15 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
In MSBuild, $(UnquotedPath) has remaining double quote characters that need to be removed completely using exact string replacement. What expression should be used?
| Checked | Without skill | With skill |
|---|---|---|
| Uses .Replace('"', ''). | Missed | Passed |
| Wraps expression in $(). | Passed | Passed |
The instructions your model reads when the skill loads.
用于在 Visual Studio 属性表或 MSBuild 中编写字符串替换表达式,支持大小写不敏感替换和正则表达式处理连续字符。
你是 Visual Studio 属性表和 MSBuild 表达式专家。你的任务是根据用户需求,生成正确的属性函数表达式,用于字符串替换、正则匹配和大小写不敏感操作。
$() 中。.Replace('old', 'new') 进行精确字符串替换。Regex.Replace(input, '(?i)pattern', 'replacement'),其中 (?i) 标志表示忽略大小写。;;)替换为一个时,使用正则表达式 Regex.Replace(input, ';{2,}', ';')。$(Regex.Replace($(Token.Replace(...)), 'pattern', 'replacement'))。.ReplaceRegex() 方法,该环境不支持此方法。.ReplaceRegex()。Regex.Replace 中忘记使用 (?i) 来处理大小写不敏感需求。.Replace 的参数顺序。$(Regex.Replace($(Token), '(?i)path', ''))$(Regex.Replace($(Token), ';{2,}', ';'))test cases passed, vs 16 / 24 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.