I have looked everywhere, but I cannot for the life of me figure out how to make a variable inside a regex statement be accessible from elsewhere.
If someone could help that would be amazing! Here is the code:
string strRegex = @"(regexstring)";
RegexOptions myRegexOptions = RegexOptions.Multiline;
Regex myRegex = new Regex(strRegex, myRegexOptions);
string strTargetString = str9
foreach (Match myMatch in myRegex.Matches(strTargetString))
{
if (myMatch.Success)
{
Here is the problem --> . . .................. string str5 = myMatch.ToString();
}
webBrowser1.navigate(str5); <-- This doesnt work
How Do I access the string str5? outside of the loop? Please Help