我试图在@Html.DisplayNameFor(model => model.Password)
内替换model => model.Password
子字符串。正则表达式帮助需要
正则表达式模板我使用的任何线索?
我试过\\(.+?\\)
这是正确的吗?
谢谢!
var match = Regex.Match(view, @"@Html.DisplayNameFor(\\(.+?\\))", RegexOptions.IgnoreCase);
if (match.Success)
{
}
这是真棒兄弟! +100 –