<input type="hidden" value="" name="signin-form[votes]" id="signin-form_votes" />
<input type="hidden" value="" name="signin-form[subs]" id="signin-form_subs" />
<input type="hidden" value="" name="signin-form[post_referer]" id="signin-form_post_referer" />
<input type="hidden" value="5a199c66783ce5b7bJWTqfRIYCN3Id0YR0Oklel5a-5HWNTU-G2gM-UGMaiHBVUiSwhbJR6tpPLATrfW" name="signin-form[csrf_token]" id="signin-form_csrf_token" />
string token = pars(html, "<input type=\"hidden\" value=\"","\"",3);
public static string pars(string strSource, string strStart, string strEnd, int startPos)
{
int iPos, iEnd, lenStart = strStart.Length;
string strResult = "";
iPos = strSource.IndexOf(strStart, startPos);
iEnd = strSource.IndexOf(strEnd, iPos + lenStart);
if (iPos != -1 & iEnd != -1)
{
strResult = strSource.Substring(iPos + lenStart, iEnd - (iPos + lenStart));
}
return strResult;
}