Returns a regular expression that matches a specified id & lt; table & nbsp; id = "forum_list" & nbsp; cellspacing = "0" & nbsp; style = "width: 760px; "& gt; & nbsp; match this id! ------ It is best to find a regular expression and match a qualified id.
Match this id!
------ Best solution --------------------
$ S = 'Your string ';
Preg_match ('/ ] *> (.*?) <\/Table>/S', $ s, $ m );
Echo $ m [1];
------ Other solutions --------------------
/Id = "([^"] *) "/
------ Other solutions --------------------
Reference:
/Id = "([^"] *) "/
Matches the fixed ID forum_list.
------ Other solutions --------------------
Reference:
/Id = "([^"] *) "/
Match the fixed ID forum_list and all the following content!
------ Other solutions --------------------
The id looks like discuz's
------ Other solutions --------------------
If it matches a large pile of html content, it is best to load the content into the dom and process the dom in the dom way.