Regular Expression to extract HREFS
Posted
by James Jeffery
on Stack Overflow
See other posts from Stack Overflow
or by James Jeffery
Published on 2010-06-13T16:56:08Z
Indexed on
2010/06/13
17:02 UTC
Read the original article
Hit count: 205
regex
I'm looking for a regular expression that can extract the href from this:
<a href="/tr/blog.php?post=3593&user=930">
There are hundreds of links on the page so I need to extract only those that contain
/tr/blog.php
So in the end I should be left with a list of links that start in /tr/blog
Thanks for any help. It's really puzzling me.
© Stack Overflow or respective owner