For help, I am responsible for matching a piece of content. to get this section of content, I must use or connect two matching strings. But I don't know how to link HTMLcode & lt; thclass & quot; left & quot; & gt; stock name & lt; th & gt; latest & lt; th & gt; rise/fall % & lt; th & gt; t seek a positive responsibility
I want to match a piece of content
To obtain the content, you must use or connect two strings before matching. But I don't know how to connect
HTML code
Stock name Latest Increase/decrease %Td class = 'left' width = '72 '>Nasdaq
The content above,
Now I want to get
Stock name's latest rise/fall % Nasdaq
I wrote a positive responsibility:
Preg_match_all ('/ ] *> |(. *) <\/Td>/isU ', $ value, $ strs );
But it cannot be used.
Also take a look.
------ Solution --------------------
PHP code
$ Value = <Stock name Latest Increase/decrease % Nasdaq
Html; preg_match_all ('/(
] *> |
) (. *) (<\/Th> | <\/p>)/isU ', $ value, $ strs); print_r ($ strs [2]);