locked
Regex value RRS feed

  • Question

  • User1519602350 posted

    I am looking for extract complete url including hyphen, query string and etc., Kindly help me with this.

     var input1 = subMenuCategories.Col1;
        var output1 = "";
        string pattern1 = @"href=""([^""]*)";
        Match match1 = Regex.Match(input1, pattern1);
        if (match1.Success)
        {
            output1 = match1.Groups[1].Value;
        }

    Tuesday, March 17, 2015 6:37 AM

Answers