Regular Expression: Getting url value from hyperlink

Posted by coure06 on Stack Overflow See other posts from Stack Overflow or by coure06
Published on 2010-04-12T16:52:31Z Indexed on 2010/04/12 17:03 UTC
Read the original article Hit count: 366

Filed under:
|

I have a string that contains html. I want to get all href value from hyperlinks using C#.
Target String
<a href="~/abc/cde" rel="new">Link1</a>
<a href="~/abc/ghq">Link2</a>

I want to get values "~/abc/cde" and "~/abc/ghq"

© Stack Overflow or respective owner

Related posts about c#

Related posts about regex