i am fighting with this small php issue, i am trying to read the url parts from a page.
php code is this:
preg_match_all('!<a href="Jobbörse-reader\/items\/(.*?)" title=".+">(.*?)</a>!',$content,$ergebnisse);
my problem is that preg_match_all() is returning 0 and if i var_dump the $ergebnisse, i am getting empty array like this:
array(3) { [0]=> array(0) { } [1]=> array(0) { } [2]=> array(0) { } }
the page code where i am reading from is this:
<a href="Jobbörse-reader/items/somelink.html" title="some text">NAME</a>
i need somelink.html and NAME, but obviously, it cannot match them, can someone help me please?
BTW: i am reading the content successfully.
thanks
I have tested your code
And it totally works: