Mkremrmpjrvvf
New Member
I'm trying to retrieve link text from an HTML file. Each of the link have a specific class applied to them, but the urls are different.I have the following:\[code\]...<a class="fetch-me" href="http://stackoverflow.com/questions/2032322/products/1">Find ME!!!</a>...<a class="fetch-me" href="http://stackoverflow.com/questions/2032322/products/2">Me too!</a>...\[/code\]I am using the following PHP code, but always getting more than I want:\[code\]preg_match_all('<a class="fetch-me" href="http://stackoverflow.com/questions/2032322/.*">(.*)</a>)siU', $string, $matching_data);\[/code\]