RegEx to find all HREF tags with or without other attributes

I need some help building a regex pattern.

I need to find all href tags, even if they have attributes attached or not.

here are samples of what i am trying to match:

<a href="/theurl/page.aspx" title="title text">
<a href="/theurl/page.aspx">
<a href="/theurl/page.aspx" title="title text" rel="something">
<a href="page.aspx">
<a href="page.aspx" title="title text">

Excluding the closing tag </a>

Could someone please help me out here... this is frustrating me extremely!
LVL 2
NugsAsked:
Who is Participating?
 
marchentCommented:
<a[^>]*href[^>]*>
0
 
NugsAuthor Commented:
Wow, now i feel stupid... Thanks!
0
 
shadow77Commented:
Here's a reference on ordering suits.  Note that the order depends on the game being played.  I'd probably use the bridge ordering.
http://en.wikipedia.org/wiki/Suit_%28cards%29#Ordering_suits
0
 
shadow77Commented:
Sorry.  Wrong thread.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.