How can I match subject via a PHP preg_match() regular expression pattern in this HTML code:
-
2020-12-10 01:10
You can add the m operator to your regular expression:
// Given your HTML content.
$html = 'Your HTML content';
preg_match('/]*>(.*?)<\/td>/im', $html, $matches);
Hope this (still) helps, hahaha.
|
|