想从中匹配出"login.php",应该怎么写正则表达式呢
<form role="form" method="post" action="login.php">
想从中匹配出"login.php",应该怎么写正则表达式呢
<form role="form" method="post" action="login.php">
string pattern = @"(?<=action\=\"").*?(?=\"">)";
Regex.Match(s, pattern).Value