I want to parse content from
<td>content</td>
and
<td *?*>content</td>
and
<td *specific td class*>content</td>
How can i make this with regex, php and preg match?
I want to parse content from
<td>content</td>
and
<td *?*>content</td>
and
<td *specific td class*>content</td>
How can i make this with regex, php and preg match?
I think this sums it up pretty good.
In short, don't use regular expressions to parse HTML. Instead, look at the DOM classes and especially DOMDocument::loadHTML