Im struggling to get this PHP reg match
work.
I am loading file through file_get_contents()
and my content will be like this,
<li >
<a href="http://www.example.org/index.php?id=2" >
Name AB
</a>
</li>
<li >
<a href="http://www.example.org/index.php?id=3" >
Name CD
</a>
</li>
I want to get an array like
array('2' => 'Name AB'), array('3' => 'Name CD')
I have tried
preg_match("/([A-Z].*?[a-z].+)/", $input_line, $output_array);
It will only give me a name.
Thank you