static void Main(string[] args)
{
string url = "ссылка";
using (var webClient = new WebClient())
{
var response = webClient.DownloadString(url);
string srt = "dasda";
if (response.Contains("RTF_WRM=") == true)
{
Regex regex = new Regex(@"R\d{12}");
MatchCollection matches = regex.Matches(response);
if (matches.Count > 0)
{
foreach (Match match in matches)
{
Console.WriteLine(match.Value);
srt = match.Value;
}
}
}
}
}