php - regex - catch string inside multiple tags
Posted
by aSeptik
on Stack Overflow
See other posts from Stack Overflow
or by aSeptik
Published on 2010-05-09T19:49:36Z
Indexed on
2010/05/09
20:28 UTC
Read the original article
Hit count: 262
Hi all guys!
still on regex! ;-)))
Assuming we have an html file with a lot of <tr>
rows with same structure like this below, where (.*?)
is the content i need to extract!
<tr align= # ><th width= # ><a OnClick="(.*?)"href= # >(.*?)</a><td width= # >(.*?)<td width= # align= # >(.*?)</td></tr>
maybe with a nice preg_match_all() ?
thanks for the time!
Luca Filosofi!
© Stack Overflow or respective owner