Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <li data-bm="6" class="b_algo"><h2><a href="http://php.net/manual/en/index.php" h="ID=SERP,5100.1"><strong>PHP</strong>: <strong>PHP Manual</strong> - Manual</a></h2></li>
  2.  
  3. var result = Regex.Match(input,
  4. @"<a [^>]+? href s*=s* ([""']) (?<url>[^1]*?) (1)",
  5. RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
  6. if (result.Success)
  7. {
  8. return result.Groups["url"].Value;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement