regular expression help
Posted
by hao
on Stack Overflow
See other posts from Stack Overflow
or by hao
Published on 2010-03-27T16:33:03Z
Indexed on
2010/03/27
16:43 UTC
Read the original article
Hit count: 331
<li class="zk_list_c2 f_l"><a title="abc" target="_blank" href="link">
abc
</a> </li>
how would i extract abc and link?
$pattern="/<li class=\"zk_list_c2 f_l\"><a title=\"(.*)\" target=\"_blank\" href=\"(.*)\">\s*(.*)\s*<\/a> <\/li>/m";
preg_match_all($pattern, $content, $matches);
the one i have right now doesnt seems to work
© Stack Overflow or respective owner