Simple Regular Expression Problem.
Posted on 2007-04-02
I Have a simple problem that involves regular expressions.
Here is the string i wish to parse(A HTML document that contains various links with the segment "/user/" in them.
"<HTML><body> blablblabla <a rel="nofollow" href="/user/SomeUser">SomeUser</a>"
I Would like to retrieve all of the values that proceed the /user/ segment of the link, so for example if we have:
<a rel="nofollow" href="/user/Jane">Jane</a>
<a rel="nofollow" href="/user/Bob">Bob</a>
I Would like to produce an array containing both Jane and Bob respectively. I Hope that was clear enough for you.